Search Results

Search: Posts Made By: atc98092
10,691
Posted By atc98092
Done!
Ok, back at my office and re-tweaked the code. I now feel I have exactly what I wanted. Thanks to all of you for great suggestions! :b:

Here's a snippet of what I finished up with:


tr -s...
10,691
Posted By atc98092
I needed a good chuckle today! :D Thanks! ...
I needed a good chuckle today! :D Thanks!

And thanks for the explanation for what those nasty brackets were doing. That means the first two scans were just lucky that nothing else matched that...
10,691
Posted By atc98092
I may have it!
Back from Hawaii, leave for Florida tomorrow. Jacksonville is as cold as Seattle right now!:eek:

I did some testing today (on Linux), and I think I have what I need. This is what I did:


cat...
10,691
Posted By atc98092
I don't want anyone to think I'm ignoring posts,...
I don't want anyone to think I'm ignoring posts, but I got pulled into an all-day meeting and it may last through tomorrow. Next week I'm traveling (Hawaii, yeah!) so won't be able to test anything...
10,691
Posted By atc98092
Hadn't given it too much thought. Since each line...
Hadn't given it too much thought. Since each line in the entry is a fixed length (including spaces, it looks like it's 80) maybe I could save it into a variable, then trim so many characters from the...
10,691
Posted By atc98092
Yeah, I was thinking of the FWD, but looking at...
Yeah, I was thinking of the FWD, but looking at complete log files I see that not every entry is forwarded to someone else. Unfortunately, the only constant between entries is that the next entry...
10,691
Posted By atc98092
I tried the same script that I was testing on...
I tried the same script that I was testing on Windows on the Linux box, with the double quote changes.

I saw that about not what you want after I hit enter. Sorry, my bad.:o

Carrage returns,...
10,691
Posted By atc98092
Well, I tried that on the Linux box, and it...
Well, I tried that on the Linux box, and it stripped out the time entry on the line I did want, so gonna have to try something else. Also, funny thing. The script that worked perfectly on my Windows...
10,691
Posted By atc98092
Didn't work
thanks for the quick response. I entered this:

sed -n -e "/[0-2][0-9][0-5][0-9] TMU/d" -e "/WX: /,/[0-2][0-9][0-5][0-9] TMU/p " 15.txt > test1.txt

since I want to remove the line that...
10,691
Posted By atc98092
using sed but want to drop last line
Howdy all. I have some scripts that read a text file looking for a keyword, then returning all the text until another keyword and puts it into a new file. Problem is, sed returns the entire last line...
Showing results 1 to 10 of 10

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