[SunHELP] Copy Files - Append Option
Rich Lafferty
sunhelp at sunhelp.org
Mon May 14 19:46:20 CDT 2001
On Mon, May 14, 2001 at 06:34:52PM -0500, Thomas_Cameron at Dell.com (Thomas_Cameron at Dell.com) wrote:
> #!/bin/sh
> for i in `ls`; do
> cat $i >> /path/to/destination/file
> done
Holy cow!
cat * >> /path/to/destination/file
(Replace '>>' with '>' if you want the destination file to be
overwritten with the first cat'd file, and then the rest appended to
it.)
-Rich
--
------------------------------ Rich Lafferty ---------------------------
Sysadmin/Programmer, Instructional and Information Technology Services
Concordia University, Montreal, QC (514) 848-7625
------------------------- rich at alcor.concordia.ca ----------------------
More information about the SunHELP
mailing list