Search Results

Search: Posts Made By: bigbrobg
2,693
Posted By RudiC
Let's assume $1 is the epoch time to be...
Let's assume $1 is the epoch time to be considered - try
awk -F"|" '
NR == FNR {EN[$1] = $2
next
}

BEGIN {print "RNA Queue RNA Operator RNA...
2,693
Posted By RudiC
OK, that should be much easier. How come the...
OK, that should be much easier. How come the start time is later than the end time in all cases above? And, which time (start or end) of
should be considered?
2,693
Posted By durden_tyler
Perl modules could be used to perform date...
Perl modules could be used to perform date arithmetic/comparison.
Here's a possible solution.


$
$
$ cat exitwithtimeout.txt
Day,Start Date,Start Time,End Date,End Time,Queue,Issue
Mon,07...
2,693
Posted By RudiC
Those are not .csv - files. Howsoever, try ...
Those are not .csv - files. Howsoever, try

awk '
NR == FNR {T[$2,$3,$4,$5]
next
}
FNR == 1 {print "RNA Queue RNA...
2,693
Posted By Corona688
Or, in short, show the data you have, and then,...
Or, in short, show the data you have, and then, show the data you want, and explain how they're related.
2,693
Posted By RudiC
It seems converting some EXCEL macro to a shell...
It seems converting some EXCEL macro to a shell script is not too attractive in these fora. May I propose a different approach: If you post the two sheets as .csv files (in fact, text files) and...
3,286
Posted By RudiC
I tried to cast ALL of this into one single awk...
I tried to cast ALL of this into one single awk script but was not too sure if I got the input file structures right, so YMMV. Why don't you constrain the selection with an adequate where clause on...
3,286
Posted By Don Cragun
I don't have any of your data to work with and...
I don't have any of your data to work with and the awk available on my system doesn't include the strftime() function you're using, so the following is untested (and given the number of manual edits...
3,286
Posted By Don Cragun
What help do you need? You have a script. ...
What help do you need?

You have a script. What is it doing wrong?
3,286
Posted By jim mcnamara
You need awk. -F and the OFS variable are...
You need awk. -F and the OFS variable are helpful here
You can set the characters you want to be field separators:

awk -F '[ |]' '{ awk script here }'

You can set the output field separator...
3,286
Posted By jim mcnamara
strftime("%c",$1) should use column #1. ...
strftime("%c",$1) should use column #1.

Could you please show us what your expected final output should be based on your sample?
Showing results 1 to 11 of 11

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