selective cpio restore
Jim Sullivan
jim at hcr.UUCP
Wed Oct 5 23:43:31 AEST 1988
In article <1484 at wa4mei.UUCP> rsj at wa4mei.UUCP (Randy Jarrett WA4MEI) writes:
>In article <644 at wa3wbu.UUCP> john at 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.
More information about the Comp.unix.microport
mailing list