This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin out of sync with version?


Joey Officer wrote:
I have a script that I run, the script is:

findme.bash:
#!/bin/bash
       for i in $( ls *.gz ); do
               echo Searching $i
               zcat -c $i | grep $1 >> searchresults.txt
               echo Finsihed searching $i , moving on to the next file...
       done
Hey, Joey, I'm curious,

Would
   zgrep "$1" *.gz

Work for your findme program?, or if you need the filename, maybe...
   zgrep -H "$1" *.gz

Won't give exact same output, but if you don't need the exact
"start/stop" of searching with each file...




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]