Search Results

Search: Posts Made By: okiedokie
1,526
Posted By okiedokie
That worked like a charm. Thanks. On a side...
That worked like a charm. Thanks.
On a side note,could you explain the code please.
1,526
Posted By okiedokie
help with script output
This is the code

var=`cat /tmp/log/test.cfg | grep -i "TEST_NUM" | cut -c 19-21`
var1=`cat /tmp/log/test.cfg | grep -i "All_TEST_NUM" | cut -c 18-19`
cat /sware/log/20090305.log | grep -e...
3,026
Posted By okiedokie
Sweet , thats works like a champ. Thanks...
Sweet , thats works like a champ. Thanks Franklin.:b:

I am glad i found this forum.
3,026
Posted By okiedokie
Thanks Franklin for yr quick resp, the sed...
Thanks Franklin for yr quick resp, the sed version i have does not support -B option. I tried the awk option and i have trouble in the output of the above command. It prints all occurances of the...
3,026
Posted By okiedokie
selective printing of lines
Hi all , i need to grep for a string in a text file and print the string and the 3rd line above it.

As always , Thanks.
1,883
Posted By okiedokie
okay , let me rephrase. my bad. I need to...
okay , let me rephrase. my bad.

I need to scan a file line by line and print multiple strings as they occur in the file. I know that grep finds the strings in a file and prints all occurences of...
1,883
Posted By okiedokie
for loop
how to use a for loop to scan one line at a time and grep for a string and print the output.

thanks so much.
1,358
Posted By okiedokie
help again
I need help on how to do this.

1. grep for a string and print the third line above it
2. grep for a string and print the seventh line below it.
3. grep for a string and print third and seventh...
1,524
Posted By okiedokie
That worked. I am glad i found this forum. ...
That worked. I am glad i found this forum. Thanks all again.
1,524
Posted By okiedokie
Thanks shamrock , i appreciate it. Yes the...
Thanks shamrock , i appreciate it.

Yes the file has other information and extra lines and they keep changing , but all i need is to grep for a three digit Tag: number starting with 140. Instaed of...
1,524
Posted By okiedokie
New to forums and had a quick one.
I am trying to use grep or awk to search for a specific number in a file. For eg.

grep -i "Tag: 140" filename.

The above command also lists other Tag: 140 like below.

Tag: 1409970...
Showing results 1 to 11 of 11

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