Search Results

Search: Posts Made By: bhupeshchavan
4,571
Posted By Don Cragun
Hi bhupeshchavan, Yes. You've got it.
Hi bhupeshchavan,
Yes. You've got it.
4,571
Posted By RudiC
awk works in a way that all pattern {action}...
awk works in a way that all pattern {action} pairs are being executed on the actual line until exhausted or otherwise terminated. Then the next line is read and the execution is repeated. So the...
4,571
Posted By Don Cragun
Hi bhupeshchavan, Here is a copy of RudiC's...
Hi bhupeshchavan,
Here is a copy of RudiC's code with comments added.
# Note that this script reads the file a line at a time (not a record at a time
# with a line ontaining "eof" as the record...
4,571
Posted By Don Cragun
That could be simplified a little bit to: awk '...
That could be simplified a little bit to:
awk '
BEGIN { FS = "\n"
OFS = ","
RS = "eof\n"
}
{ split($3, a, /[=.]/)
if((a[2] + 0) <= 12)
print $1, $2, $3, $4
}' log
The reason chill3chee...
4,571
Posted By chill3chee
Hi Bhupesh, For the comparison, can you please...
Hi Bhupesh,
For the comparison, can you please check whether the following does meet your need (untested)
awk '
BEGIN {FS = "\n"
OFS = ","
RS = ""
}
{trn=$1;nm=$2;tme=$3;msg=$4;...
3,413
Posted By Don Cragun
Please answer Scrutinzer's question: Is this...
Please answer Scrutinzer's question: Is this homework?

If it isn't there are a few other questions that need to be answered:

What shell are you using?
Note that in your sample data, you have...
Showing results 1 to 6 of 6

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