Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2011 01:25:39 -0600
From:      Modulok <modulok@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Piping find into tar...
Message-ID:  <BANLkTimNyNKADJ543wDcNBE=tWqjCCEw_w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
List,

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
(obviously).

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

Thanks!
-Modulok-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimNyNKADJ543wDcNBE=tWqjCCEw_w>