Search Results

Search: Posts Made By: Anahka
7,657
Posted By Anahka
Using the above suggestion gives me an error. ...
Using the above suggestion gives me an error.

grep: egrep -l "$ser" *.rpt: cannot open [No such file or directory]

anymore ideas.

Thanks Perderabo
7,657
Posted By Anahka
I short handed the last bit of code because : ...
I short handed the last bit of code because :

ser="S/N: 10001"
oper="Operation: 300"

I did this because there are chances of having 300 and 10001 in the collected data. using this and the...
7,657
Posted By Anahka
I am using egrep right now: ser="10001" ...
I am using egrep right now:

ser="10001"
oper="300"

egrep -l "$ser" *.rpt|egrep -l "$oper" *.rpt

this works but it also shows files that have an operation other then 300
7,657
Posted By Anahka
Searching multiple files with multiple expressions
I am using a DEC ALPHA running Digital UNIX (formly DEC OSF/1) and ksh. I have a directory with hundreds of files that only share the extension .rpt. I would like to search that directory based on...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy