9 May
2002
9 May
'02
18:18
* Mark Hounschell (markh@compro.net) [020509 09:06]:
How can you use the contents of a file as command line parameters for a script? The file has 3 colums and each colume I want to be command line $1 $2 $3 respectivly for the script.
$script < file does not seem to work
while read rec do your_command_here $rec done < file_with_args You can also do this in awk but it's a little more, uhm..., awkward. -- -ckm