Search Results

Search: Posts Made By: Mike Smith
5,432
Posted By Mike Smith
Splitting the work seems to have cracked it so...
Splitting the work seems to have cracked it so I'll post the code to help the next poor sod.

Many thanks for all your help...

NOWEPOCH=`/usr/bin/nawk 'BEGIN{print srand()}'`
v1=`echo...
5,432
Posted By Mike Smith
@Don Since this works perfectly on a...
@Don

Since this works perfectly on a different box and occassionally on this one I was hoping that I'd not have to reinvent this thing to fix my problem.

However I think what you're describing...
5,432
Posted By Mike Smith
Tried -k2,2 and it binned loads of old entries...
Tried -k2,2 and it binned loads of old entries which I wanted!

Say I have this data, the highest number (newest) one will always be at the top and I only want to keep the top one as everything...
5,432
Posted By Mike Smith
Column 1 needs to be kept but ignored by sort. ...
Column 1 needs to be kept but ignored by sort.

Basically there will often be two entries just with the column 1 timestamp being different, I need to keep the top entry.

-k sounds like it...
5,432
Posted By Mike Smith
Gosh! I'll have a play with the -k option, I read...
Gosh! I'll have a play with the -k option, I read the man page and didn't understand the k bit at all.

I need column 1 (Epoch time stamp) ignoring and the rest of the line taken into account for...
5,432
Posted By Mike Smith
Alternative to sort -ur +1 required
I've got scripts trawling the network and dumping parsed text into files with an Epoch timestamp in column 1. I append the old data to the new data then just want to keep the top entry if there is an...
Showing results 1 to 6 of 6

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