From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,a0766b75e5b4bd5a,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,a0766b75e5b4bd5a,start X-Google-Attributes: gidfee84,public From: s11976@net2.hkbu.edu.hk (Pui Ming WONG) Subject: using find command to select files to backup Date: 2000/07/19 Message-ID: <8l3rme$prp$1@power25t.hkbu.edu.hk>#1/1 X-Deja-AN: 648131105 X-Complaints-To: pm@hkbu.edu.hk X-Trace: power25t.hkbu.edu.hk 963998222 26489 158.182.4.9 (19 Jul 2000 09:17:02 GMT) Organization: Hongkong Baptist University NNTP-Posting-Date: 19 Jul 2000 09:17:02 GMT Newsgroups: comp.unix.questions,comp.unix.osf.osf1 I would like to backup files whose name meeting certain criteria onto 1 tar file from the /var/spool/mail directory using the piping feature in unix command. I've tried commands like: cd /var/spool/mail find . -name "[a-z][0-9]*" -print | tar cvf /somedir/somefile.tar - find . -name "[a-z][0-9]*" | tar cvf /somedir/somefile.tar - But they didn't seem to work What should be the command be ? The OS is DG Unix 4.0E --