Search Results

Search: Posts Made By: commonwealth
6,785
Posted By commonwealth
root :0 Thu Oct 4...
root :0 Thu Oct 4 11:06 - 11:07 (00:00)
root :0 Thu Oct 4 11:06 - 11:06 (00:00)
root pts/1 :0.0 Thu...
6,785
Posted By commonwealth
Thank you so much for the replies. I've...
Thank you so much for the replies.

I've tried out the code given.
I wanted print any line that matches $userid and matches $datte.
So far when I try enter $userid it can filter but when I enter...
6,785
Posted By commonwealth
Hi, echo -e "Date(ddmmyyyy): \c" read datte...
Hi,
echo -e "Date(ddmmyyyy): \c"
read datte
echo -e "User ID: \c"
read userid
awk /$userid/,/$datte/'{print $1"\t"$2"\t"$6"\t"$5"\t"$4}' samplefile

I am trying to filter out user and...
6,785
Posted By commonwealth
How to filter date input in awk?
Hi,

I've no problems filtering text in awk but whenever I try to filter date format such as 03022013, I couldn't get awk to filter the item out.

Any tips?
Showing results 1 to 4 of 4

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