10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for a way to look in files and to grep text and see the all section of the text
To grep "deed "an see the all section (5 Replies)
Discussion started by: sharong
We Have Squid server, We need to get the particular IP's log from /var/log/squid/access.log, if i need to get only the log's of 192.168.0.99, How can i get the log's to a separate file.
Here is the sample log what i have got from access.log file
1392706763.690 847... (2 Replies)
Discussion started by: babinlonston
3. Shell Programming and Scripting
I wrote a Bash script which checks to see if a text string exists on a web page and then sends me an email if it does (or does not e.g. "Out of stock"). I run it from my crontab, it's quite handy from time to time and I've been using it for a few years now.
The script uses wget to download an... (6 Replies)
Discussion started by: gencon
4. Shell Programming and Scripting
Relatively new to scripting, but really struggling with something that will no doubt be second nature to most people on here:
Trying to get an exact match on $sub, where sub is an ip address.
... (18 Replies)
Discussion started by: CiCa
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: evelibertine
6. UNIX Desktop Questions & Answers
i need to grep / awk a list of "DEV ID" range for example for greping
0936 - 09C1 from this file:
0x5000097310036d05 558 1 20531 LOCAL GLOBAL 42048000 YES 0x8e36c8bd07ce9e13 DEV ID: 0933
0x5000097310036d05 559 1 20531 ... (1 Reply)
Discussion started by: boaz733
7. Shell Programming and Scripting
i am trying to create simple script file..
what i do is grep for a pattern and output 1 line after it.
grep -A 1 time files.txt
Is there some option I can use so I can get on result each 2 lines combined as one file?
time file1... (2 Replies)
Discussion started by: alekkz
8. Shell Programming and Scripting
in ksh i wanted to grep for some text and also include a few lines above and below that text. how do i do that ???
i am trying to get my script to print out request and response from the server log file.
getting the request is easy, i just do a grep -i "request" from log but i... (5 Replies)
Discussion started by: cesarNZ
9. UNIX for Dummies Questions & Answers
I am trying to search for a pattern in a file containing xml - When I match the search I want to retrieve all the text within the xml brackets..
Whats the best way to read in data between xml tags in a shell script?
xml returned which I have in a file now is something like below:... (2 Replies)
Discussion started by: frustrated1
10. UNIX for Dummies Questions & Answers
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)
Discussion started by: coppertone