[lug] bash - awk - command substitution - for loop

Kenneth D. Weinert kenw at quarter-flash.com
Tue Nov 6 21:11:01 MST 2007


I always have to putter around with these things as I no longer do it
often enough to keep it straight.

However, the one thing you might want to try is to rearrange the loop:

awk '{print $0}' access_log  | sort | while read i
do 
echo $i
done


-- 
Ken Weinert
http://quarter-flash.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20071106/74cc94ff/attachment.pgp>


More information about the LUG mailing list