Computing.Net > Forums > Unix > Assigning of expression to a variab

Assigning of expression to a variab

Reply to Message Icon

Original Message
Name: samala
Date: February 4, 2006 at 00:11:44 Pacific
Subject: Assigning of expression to a variab
OS: UNIX
CPU/Ram: p4 and 512MB
Comment:

Hi,

i am unable to assign an expression to variable.
like


in a for loop
for i in `cat isa1`
do
txn = `cat x12result|grep -l $i|tr -s ' ' ""|cut -f 2 -d ',' `

echo $txn

done

The above code is giving errors.

Any information regarding this will be of great help.
Regards,
Sam



Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Assigning of expression to a variab

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge