Search Results

Search: Posts Made By: klane
6,258
Posted By klane
I don't need any help modifying the rest of the...
I don't need any help modifying the rest of the awk script that I have posted, just the part of storing the variable. Basically it runs through a text file (example below) and for the last close...
6,258
Posted By klane
awk loop using array:wish to store array values from loop for use outside loop
Here's my code:


awk -F '[ : ]' 'NR==FNR {
if (/time/ && $5>10)
A[++N]=$2" "$3":"$4":"($5-01)
else if (/time/ && $5<01)
A[++N]=$2" "$3":"$4-01":"(59-$5)
else if...
3,817
Posted By klane
Yeah that one now does the dates, but it also...
Yeah that one now does the dates, but it also swaps the dates from the first and the last one. I just want to swap the date from the one before it. I appreciate the help though, and thanks for...
3,817
Posted By klane
RudiC, Your tac code changes the time on the...
RudiC,

Your tac code changes the time on the entry before but it doesn't also change the date.

So for the text it reads:
sta WP00 34.07335 -106.91932
time 10/23/2013 20:10:17
sensor...
3,817
Posted By klane
Wowza! It works! Thanks so much, I've been...
Wowza! It works! Thanks so much, I've been scratching my head on this problem for a couple days. I think it might help if you wouldn't mind to explain the formatting line by line and what it is...
3,817
Posted By klane
Hmm...that doesn't seem to work, they are left...
Hmm...that doesn't seem to work, they are left unchanged in the first entry and stripped off of the second entry. I'm trying to think about how to maybe modify what you just put:

What I want the...
3,817
Posted By klane
What I want to do is take the second matched time...
What I want to do is take the second matched time entry, in this case

time 10/28/2013 20:20:28

and insert the date and time for the 2 previous close statements so instead of reading:

close...
3,817
Posted By klane
Replace second match+awk/sed
I have a text file that looks like this:
-----------------------------------------
sta WP00
time 10/23/2013 20:10:17
sensor trillium_240_2 0 583
add
close sensor trillium_240_2 10/23/2013...
2,675
Posted By klane
I'm sure this has been solved already given the...
I'm sure this has been solved already given the tag but is you are looking to resolve the line
1:59:09,260 DEBUG SOAP REQUEST: <SOAP-ENV:..<ns1:mdn>NPANXX<

Simply use the command: grep -B5...
Showing results 1 to 9 of 9

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