Unix/Solaris find in files ?

Discussion in 'Linux / Unix Discussion' started by dmarsh, Mar 19, 2008.

  1. dmarsh
    Honorary Member 500 Likes Award

    dmarsh Petabyte Poster

    4,305
    503
    259
    Hello,

    Does anyone have a quick and easy way to search by filename and text file content inside zip and tar files on solaris ?

    thanks ! :D

    Dave
     
  2. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Hm - can't think of an easy way for tar files, but check if your copy of Solaris has gzgrep for gzip files. (zip files in the unix world aren't normaly that common - are these really zip and not gzip?)

    Otherwise create a empty temp directory and write a script to untar/unzip, then do a find + grep.

    Edit: File name search is easy for tar files - tar -t + grep.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.