Piping find into tar...

Modulok modulok at gmail.com
Wed May 4 07:25:40 UTC 2011


I've been playing with the find command lately. Is there a way I can pipe the
putput list of files from find, into the tar command to create an archive which
contains the files which find lists? I tried the following, but it didn't work

find -E . '.*\.txt$' -print | tar -cjf result.tgz


More information about the freebsd-questions mailing list