|
Hi The most simplest script would be....
you would be able to supply full path names on the command line
If the files always live in the same place then you can code the path names in the script.....
Note: There is NO checking to ensure that the first file is the outputfile that you require and that the txt files actually exist and are readable.....
#!/bin/sh
if [ $# -ge 2 ] # Need to check to make sure we have 2 files as a min
then
outfile=$1
shift;
files=$*
cat $files > $outfile
else
echo "Usage: `basename $0` [output file] [textfile listing]"
fi
|