[SunHELP] Copy Files - Append Option

sunhelp at sunhelp.org sunhelp at sunhelp.org
Mon May 14 18:34:52 CDT 2001


#!/bin/sh
for i in `ls`; do
  cat $i >> /path/to/destination/file
done

Thanks,
Thomas Cameron, MCSE, MCT, CNE, RHCE
IS Engineering Manager
Dell Financial Services

> -----Original Message-----
> From: ymui at royalsunalliance.ca [mailto:ymui at royalsunalliance.ca]
> Sent: Monday, May 14, 2001 4:31 PM
> To: sunhelp at sunhelp.org
> Subject: [SunHELP] Copy Files - Append Option
> 
> 
> Dear Managers,
> 
> Does anyone know how to copy multiple source files onto one 
> destination
> file with source files appending one another ?  'cp' does not 
> seem to have
> this option.
> 
> Thanks, Yingha Mui.
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 



More information about the SunHELP mailing list