[SlugBug] directory copy
Bill Best
bill at commedia.org.uk
Thu Jul 24 21:18:07 BST 2003
J. J. Green wrote:
>Jim
>
>
>>i'd like to copy /home/directory1 to /home/directory2 but omitting
>>/home/directory2/subdirC, for example.
>>
>>
>
>if your shell is (t)csh:
>
>
bash
>foreach dir ( `ls -1 /home/directory1 | grep -v subdirC` ) ;\
> cp -r /home/directory1/$dir /home/directory2 ;\
> end
>
>
Jim Jackson's tip worked for me - many thanks all round.
>(not tested)
>
>
> Good luck!
Cheers
bill
More information about the SlugBug
mailing list