From ne2k, 3 Months ago, written in Plain Text.
  1. andy@andy-xenial-desktop:~$ rm out.tar
  2. andy@andy-xenial-desktop:~$ tar rhf out.tar --transform 's/.*/thing/' <(echo "thing thing thing")
  3. tar: Removing leading `/' from member names
  4. andy@andy-xenial-desktop:~$ tar rhf out.tar --transform 's/.*/blah/' <(echo "bloof")
  5. tar: Removing leading `/' from member names
  6. andy@andy-xenial-desktop:~$ tar tvf out.tar
  7. prw------- andy/andy         0 2019-05-24 16:11 thing
  8. prw------- andy/andy         0 2019-05-24 16:11 blah
  9.  
captcha