Search Results

Search: Posts Made By: ns64110
2,762
Posted By codemaniac
egrep or grep with an 'e' switch can also serve...
egrep or grep with an 'e' switch can also serve your purpose .

grep -e $trans -e $reason file

OR

egrep ($trans| $reason) file
2,762
Posted By Scrutinizer
Try: rec=$(awk "/$trans/ && /$reason/"...
Try:
rec=$(awk "/$trans/ && /$reason/" file)
2,762
Posted By balajesuri
grep "${trans}.*${reason}" file
grep "${trans}.*${reason}" file
Showing results 1 to 3 of 3

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