There are archived files with .Z in the server.
I want to grep a code within those files.
How can I do this?
Please help.
Koho
There are archived files with .Z in the server.
I want to grep a code within those files.
How can I do this?
Please help.
Koho
There are archived files with .Z in the server.
I want to grep a code within those files.
How can I do this?
Please help.
Koho
you can try with zgrep
Something like this..
PATH = /<your path>
for temp in `find $PATH -name '*.z'`
do
grep 'your string' $temp
done
zcat myfile.Z | grep