yes i want the local ip range which was start with 192.168.0. series , ok let me try and you will came to know about my result , thank you.
---------- Post updated 02-19-14 at 10:00 AM ---------- Previous update was 02-18-14 at 07:09 PM ----------
Quote:
Originally Posted by Don Cragun
There appear to be two IP addresses on many lines in this file. Am I correct in assuming that you only want to look for the IP address surrounded by spaces and not the ones following DIRECT/? If that is what you want try:
your Guide Work's Perfectly thanks sir, I used
Last edited by Don Cragun; 02-19-2014 at 12:33 AM..
Reason: Add CODE tags.
How do I use the grep command to take mutiple text files in a folder and make one huge text file out of them. I'm using Mac OS X and can not find a text tool that does it so I figured I'd resort to the BSD Unix CLI for a solution... there are 5,300 files that I want to write to one huge file so... (7 Replies)
Hi
I have two files a1 and b1
a1 has the following job names
ab
cd
ef
b1 has the following job details
/*----------- ji -----------------*/
asdasd fgd
saas dfdf
asas fd gfg
/*---------- ab ----------------*/
ara jhk
dfhk asjla
condition: s(abc_wf_hi) (10 Replies)
Sirs,
i am trying to create simple script file..
what i do is grep for a pattern and output 1 line after it.
exmp:
grep -A 1 time files.txt
Output:
time
file1
time
file2
---
Is there some option I can use so I can get on result each 2 lines combined as one file?
like:
time file1... (2 Replies)
Hi all,
I need to grep a line from a log file which ensures me that the application server script is executed successfully. Some body please help me on this.
I also need to write a while loop in which i need to use the status of the above grep output. Could some one please tell me how to use... (12 Replies)
Hi. I have a unix script 'if' condition that greps through a file and searches for the strings ERROR and WARNING.
if egrep -q 'ERROR|WARNING' myfile.txt; then
When this 'if' condition is true then I want to be able to capture 10 lines before the string and 10 lines after the string. So... (6 Replies)
Hello friends!
Help me pls to write correct awk and grep statements for my task:
I have got files with name filename.txt
It has such structure:
Start of file
FROM: address@domen.com (12...890) abc
DATE: 11/23/2009 on Std
SUBJECT: any subject
End of file
So, I must check,
if this file... (4 Replies)
Hi,
I used the grep command and got the result below.
However, I just want the following information:
Build Version:
DnETest Build
Build Date-Time:
01/27/2012 07:56:14 AM
Any suggestion from the current out put I have:
<td><span class="style29"> Build Version: </span></td>... (1 Reply)
I would like to use grep to select multiple lines from a text file using a single-column text file. Basically I want to only select lines from the first text file where the second column of the first text file matches the second text file. How do I go about doing that? Thanks! (5 Replies)
Hello,
I want to grep a log ("server.log") for words in a separate file ("white-list.txt") and generate a separate log file containing each line that uses a word from the "white-list.txt" file.
Putting that in bullet points:
Search through "server.log" for lines that contain any word... (15 Replies)
My current line command is as follows:
echo -n "text: " ; grep "blah text" ../dir1/filename | wc -l
The output to the screen is as needed, but how do I print to a text file? (9 Replies)