cat movies | awk 'system("echo " $1)'
where "foo" is the file. That sends the file to awk, and the stuff in the single quotes tells it to invoke the system command "echo" for each line of the file, passing the line to it. You can obviously substitute other commands for "echo", like "wget" to download a bunch of stuff if the file is a list of URLs.
No comments:
Post a Comment