[ale] help with a tiny shell script

Jay Loden jloden at toughguy.net
Tue Nov 16 01:17:08 EST 2004


On Tuesday 16 November 2004 12:54 am, Christopher Bergeron wrote:
> rm append.csv
> echo > append.csv
> for i in `cat *.csv`; do cat $i >> append.csv; echo -e "\n" >>
> append.csv; done

That didnt work out, I got the following when I tried to run it : 

cat: 2,0,0,1,1,4,1,18,2,0,2,1,1,0,: No such file or directory
cat: append.csv: input file is output file
cat: 2,0,0,1,1,3,1,10,2,0,2,1,1,0,: No such file or directory
cat: append.csv: input file is output file
cat: Just: No such file or directory
cat: helps: No such file or directory
cat: to: No such file or directory
cat: keep: No such file or directory
cat: in: No such file or directory
cat: touch: No such file or directory
cat: with: No such file or directory
cat: old: No such file or directory
cat: friends: No such file or directory
cat: that: No such file or directory
cat: aren\'t: No such file or directory
cat: at: No such file or directory
cat: the: No such file or directory
cat: same: No such file or directory
cat: college.1,0,0,1,1,2,1,7,2,0,2,0,1,0,: No such file or directory
cat: append.csv: input file is output file
cat: Interacting: No such file or directory

and so on and so forth for each file...it seems to hit the short answer and 
then try to process it as a file name? 

-Jay



More information about the Ale mailing list