tar with pipe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



CentOS 4.1 X86_64

I am trying to collect all my music files and extract them into a new 
directory flat, (without the hierarchy)

The command works find without the pipe, but do not work with.

1.Why don't the command work after the pipe?
2.How do I remove the hierarchy before extracting?

$ tar -cvf music.tar `find ../ -name '*.mp3' -o -name '*.ogg'` | tar 
-xvf music.tar

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux