Search Results

Search: Posts Made By: jboy
103,764
Posted By methyl
Try "grep -E" which is actually the same as...
Try "grep -E" which is actually the same as "egrep".

Note the use of the circumflex character to mean "line starting with" in grep.

grep -E "^BAT|^SAT" /usr/local/names.txt >filenames.txt

I...
7,122
Posted By ahamed101
I am now confused with your requirement. If you...
I am now confused with your requirement.
If you want the results in separate line, just do the following in your script


grep ^$2 $1 #this will print the matching lines in separate lines

...
Showing results 1 to 2 of 2

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