SUMMARY2 tar with -C and wildcard

From: tsh@mrc-lmb.cam.ac.uk
Date: Mon Apr 14 2003 - 08:03:37 EDT


The good Dr Blinn to the rescue yet again.
Tom (as did all the others who kindly responded to my
query) pointed out that the shell handles * expansion.

He than also went on to offer a method whereby we could do this:

tar cf $tape -C /dir1 `cd /dir1; ls file1*` -C /dir2 `cd /dir2; ls file2*` ...

Cheers,
T.
  



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:15 EDT