I need help or I will do this is python instead (by reading one line at a time) which I know I should not need to.
I have large number of text files that I get using find.
FILES=$(find ... -iname "*.txt") num=0 for doc in $FILES; do echo "start string" > cat $doc > echo "end string" > "outfile$num.txt" let num=num+1 done
I dont know to many unix commands, but what I want to do is something like this:
output "start string" then cat $doc then "end string" to stdout and store in the outfile.
Thank you for your help!!