On Wed, Feb 23, 2005 at 04:46:57PM +0100, Bob Alexander wrote: > I do not quite manage to find the proper catenation of commands to mv or > cp a file and compress it (preferably with bzip2) on the fly. > > Suppose I want to backup my /etc/X11/XF86Config4 file to > /home/bob/configs as XF86Config.bz2 > > Thank you. Hi Bob, cat ${SOURCEFILE} | bzip2 -c > ${BACKUP_LOCATION} should work. Regards, Jan -- Jan C. Nordholz <jckn At gmx net>
Attachment:
signature.asc
Description: Digital signature