For Programmers: Free Programming Magazines  


Home > Archive > AWK > December 2004 > Re: Passing string to awk









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Passing string to awk
warezcrc@hotmail.com

2004-12-17, 8:55 am

make it look like this ex.

ls -Fl | awk '{print "\t"$3, $4, "'"$PWD"'/"$9}' | sed 1d

and you get what you want i believe, had the same problem what you are
looking for in this ex. is this part '"$PWD"' that will get you your
variable, replace $PWD with yours.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com