Browse - programming tips - removing leading slash from member namesDate: 2008nov6 Language: bash Q. When I use tar it says: "Removing leading `/' from member names" how can I suppress that message? A. I wish there was an option for this but here is the best way. If you are doing: tar cf /aaa/bbb/ccc.tar /xxx/yyy/zzz Change it to: SRC=/xxx/yyy/zzz DIRNAME=`dirname $SRC` BASENAME=`basename $SRC` tar cf /aaa/bbb/ccc.tar -C $DIRNAME $BASENAME
Add a commentSign in to add a comment | Advertisements:
|