Search Results

Search: Posts Made By: andresgom
2,347
Posted By stuckinboredom
try this: for i in {1..$#} do eval...
try this:

for i in {1..$#}
do
eval echo $`echo $i`
done
1,598
Posted By Jotne
Or you can put the variable behind the program...
Or you can put the variable behind the program like this:
awk -F: '$1==VAR' VAR="$THEVARIABLE" /etc/passwd
1,598
Posted By Yoda
Variable assignment in awk is preceded with the...
Variable assignment in awk is preceded with the -v option.

Also note that awk is capable of reading file by itself, there is no need to cat and pipe the output to awk:
awk -F: -v...
Showing results 1 to 3 of 3

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