I have a script that analyses a list of files checking for various values and then reporting on this. I have just added a couple more greps to the script and it is now running in about 12 secs rather than the 2-3 it was before.
If a file is grepped and then grepped again straight away, does it use a cached copy of the file or re-read from the file on disk?
this may explain the time it takes to run
cheers
simmo
If a file is grepped and then grepped again straight away, does it use a cached copy of the file or re-read from the file on disk?
this may explain the time it takes to run
cheers
simmo