create tarball reading file paths from stdin?
I thought for sure I had done this before. I'd like to create an archive of certain file types using the output of find. But I can't convince tar to read these file paths from stdin. Here's what I've tried so far:
<pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 10px;">ls test? | tar cvf test.tar -f -
tar: Multiple archive files requires `-M' option
Try `tar --help' for more information.
ls test? | tar cvf test.tar --file -
tar: Multiple archive files requires `-M' option
Try `tar --help' for more information.
ls test? | tar cvf test.tar -F -
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.
ls test? | tar cvf test.tar -
tar: -: Cannot stat: (null)
tar: Error exit delayed from previous errors</pre>
Am I missing something obvious? Thanks for any tips.
--
Cole
15 PB Mac OS X (10.3.9)
15 PB, Mac OS X (10.3.9)