short script to cat filename

From: Mike's List (mikelist@sky.net)
Date: Wed Jan 21 2004 - 01:52:06 EST


I have over 25000 small text files that I can only displays on screen
and cannot mv or cp. Could someone forward me a short script to do the
following:

cat file00000.txt - file25000.txt > file00000.txt - file25000.txt

I'm thinking of the below, but I'm not a script expert.

#!/bin/ksh
for i = 0-25000
do
cat file$i.txt > file$i.txt
end

Basically, cat 25000 small files and piping it into the same filename.
Late project, hopefully someone is reading the list this late. Thanks.

- Mike

[ In addition to www.sunfreeware.com more packages at ftp.patriots.net ]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:51 EDT