I have some mp3 on various dir. I did
find $HOME -name *.mp3|pax -wf arch.tar
The command works fine,but when extract, it recreate the full dirs for example
tar -tvf arch.tar
Return
dir1/dir2/sound.mp3
dir3/music.mp3
dir4/dir5/anotherdir/anothermusic.mp3
When extract of course will create a lot of dirs. My desire is a thing like this
find $HOME -name *.mp3|pax -w"possibleoption" -f arch.tar
To obtain an archive like this
/sound.mp3
/music.mp3
/anothermusic.mp3
I know is not safe,but is possible to strip dir path on fly?
p.s= I used pax command for example, but the classical tar is also good