redirecting input from two files
Hi folks,
I'm wondering if its possible to get the redirected input from two files. Something like this Code:
mysql -p < ./setvariables < ./setdata How to interpret this. Is the first file also parsed but just not displayed? Anyone knowing a way to get the input from two files in a row? And please no just cat the second file into the end of the first one. I don't want to cat 1Gb of data ;) Cheers Zhjim |
Hi, point the arrows to the output, put the output file last.
(concatenate) cat source-file1 source-file2 > output-file-name ref. http://docs.sun.com/app/docs/doc/816-5165/cat-1?a=view hth, Glenn |
I fouled around my self some more. And after reading your post it just came to me
Code:
cat ./setargs ./setdata | mysql -p Thanks |
All times are GMT -5. The time now is 04:43 PM. |