Discussion: awk
Afficher un message
Vieux 22/08/2006, 19h27   #1
AL
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut awk


Why in the following code?

varA=2;

strA="`cat /root/mytempdir/wordlist.txt | awk '{print $ 2}'`"
strB="`cat /root/mytempdir/wordlist.txt | awk '{print $ $varA}'`"

strA contains the second word of line 1
and strB contains all line 1
???

Thanks



  Réponse avec citation
 
Page generated in 0,04046 seconds with 9 queries