Search Results

Search: Posts Made By: zazzybob
3,094
Posted By zazzybob
Ah, I see. How's about #!/usr/bin/ksh ...
Ah, I see.

How's about

#!/usr/bin/ksh

counter=1
cmd="awk"
field1="Fred"
field2="Joe"
field3="Mary"
field4="Jane"


while [ $counter -le 4 ]
do
field=field$counter
eval...
3,094
Posted By zazzybob
Hmmm... Re-reading your question, i don't know if...
Hmmm... Re-reading your question, i don't know if this'll help....


#!/usr/bin/ksh

counter=1
cmd="awk"

number_of_fields=4

while [[ $counter -le $number_of_fields ]]
do
cmd=$cmd"...
3,094
Posted By zazzybob
Hmm, not too sure that I follow.... What is...
Hmm, not too sure that I follow....

What is the content of "file" (i.e. that's providing STDIN to the while loop)?

Cheers
ZB
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy