Path: utzoo!attcan!lsuc!ncrcan!hcr!jim From: jim@hcr.UUCP (Jim Sullivan) Newsgroups: comp.unix.microport Subject: Re: selective cpio restore Message-ID: <4042@hcr.UUCP> Date: 5 Oct 88 13:43:31 GMT References: <644@wa3wbu.UUCP> <1484@wa4mei.UUCP> Reply-To: jim@hcrvax.UUCP (Jim Sullivan) Organization: HCR Corporation, Toronto Lines: 14 In article <1484@wa4mei.UUCP> rsj@wa4mei.UUCP (Randy Jarrett WA4MEI) writes: >In article <644@wa3wbu.UUCP> john@wa3wbu.UUCP (John Gayman) writes: >> strm /dev/mt/rmt0 | cpio -icvmu /usr/acct/john/* >> >> What I wanted to do was restore all the files in the directory john. > Try using the following. > strm /dev/mt/rmt0 | cpio -icvmu "/usr/acct/john/*" > of course, you could just escape the asterisk, and enter: strm /dev/mt/rmt0 | cpio -icvmu /usr/acct/john/\* That's all Randy is doing by putting the string in quotes. He's protecting the string from the shell, which is going to try and expand the asterisk.