Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] shell scripting help


Hi,
Writing a little utility to help me on something but having trouble.
Why does f stay blank?

danb@lin4:test$ echo "foo|bar" | awk 'BEGIN{RS="|"}{ print $1 }' | while
read s; do echo $s; f=$s; done; echo "'$f'"
foo
bar
''

Regards
-- 
Daniel Bush