Thursday, September 17, 2015

Command search file in tar on AIX

Overview

    We usually pack multiple files into one single archive using the tar command. Further, tar with the -z option allows us to compress the archive using gzip to save disk space.
    We’ll learn how to do grep on a .tar archive to find which files contain an interesting pattern for us.

Command:

# tar -tvf Folder.tar|grep testing.txt

No comments:

Post a Comment