find . -name <filename> -exec grep -Hn <occurrence> '{}' \;
Extract a tar file using option x as shown below:
$ tar xvf archive_name.tar
- x – extract files from archive
Use the option z for uncompressing a gzip tar archive.
$ tar xvfz archive_name.tar.gz
Use the option j for uncompressing a bzip2 tar archive.
$ tar xvfj archive_name.tar.bz2
Note: In all the above commands v is optional, which lists the file being processed.