file contents to command line args
im trying to send the contents of a file (a list of files) to the command line as arguments for a script, I thought I could get away with the following without success
myscript destfile <myfiles.txt
cat myfiles.txt | myscript destfile [the list of files as input files to the script piped here]
I have some scripting experience and could get around this by creating a script, loading the filenames into an array and then executing the script but was hoping someone could help me keep it simple.