Hi,
What is the cleanest way to create a tar with a prefix directory in it?
cd /export/home/testbed
tar -cvzf test.tgz *
I need the tar to include "jump"/testbed/<files> in it not just testbed/<files> in it.
There are sed commands out there but I am in search of a cleaner way.
Thanks
What is the cleanest way to create a tar with a prefix directory in it?
cd /export/home/testbed
tar -cvzf test.tgz *
I need the tar to include "jump"/testbed/<files> in it not just testbed/<files> in it.
There are sed commands out there but I am in search of a cleaner way.
Thanks
Comment