Using awk in BASH alias or function?

You need to escape the $ like so: alias a="awk '{print \$1}' /tmp/textfile" Otherwise your alias is: awk '{print }' /tmp/textfile Which prints the whole file...

AH-HA! Duh! Thanks!

– Corn-fuzed Aug 30 '11 at 14:19 2 The protocol to say thanks in these parts is to mark the answer as the correct one (by clicking the little check mark to the left). =) – Costa Aug 30 '11 at 15:05.

Use a function instead of alias myfunc(){ awk '{print $1}' file; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send