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
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
Now, this used to
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
Larry, Thankyou!
That indeed did solve my problem. I did a quick glance in the direction
over at cygwin.com but did not see a specific reference to the recent
bash release. Do you have a link I could read?
Joey
Larry Hall (Cygwin) wrote:
Joey Officer wrote:
I have a script that I run,
Actually, I just found the specific reference under the experimental
bash release, I see the notes now. Thanks for the quick response, my
script is running as intended, I can actually get some work done today ;)
Thanks again,
joey
Larry Hall (Cygwin) wrote:
Joey Officer wrote:
I have a
Joey Officer wrote:
for i in $( ls *.gz ); do
This needlessly forks a subshell process and a /bin/ls process for no
apparent reason. For better performance and readability just let the
shell do the globbing:
for i in *.gz; do
Brian
--
Unsubscribe info:
I can certainly update the script, and will let you know how it runs...
Thanks for the input,
joey
Brian Dessent wrote:
Joey Officer wrote:
for i in $( ls *.gz ); do
This needlessly forks a subshell process and a /bin/ls process for no
apparent reason. For better
Well whether it was due to disk caching or the modification of the
script the following were my results, thanks for the tip!
modified version:
time ./findme.bash 10.65.118.
real21m38.537s
user11m57.334s
sys 7m33.675s
original version:
time ./findme.bash 10.65.118.
real22m0.749s
8 matches
Mail list logo