Search Results

Search: Posts Made By: PhAnT0M
2,435
Posted By ctsgnb
Doesn't that code already get them ? (I...
Doesn't that code already get them ?

(I meanwhile fixed my code replacing $1==T||$1==Y with x==T||x==Y )
2,435
Posted By ctsgnb
also TODAY=$(perl -e '@now=localtime; printf...
also
TODAY=$(perl -e '@now=localtime; printf "%02d/%02d/%02d\n", $now[4]+1,$now[3],($now[5]+1900)%100')YESTERDAY=$(perl -e '@now=localtime(time - 86400); printf "%02d/%02d/%02d\n",...
2,435
Posted By chihung
Try this by escape the forward slash and use...
Try this by escape the forward slash and use double quote in awk:

TODAY=$(perl -e '@now=localtime; printf "%02d\\/%02d\\/%02d", $now[4]+1,$now[3],($now[5]+1900)%100')

YESTERDAY=$(perl -e...
2,435
Posted By ctsgnb
The following code should display all the lines...
The following code should display all the lines relating to a date that match $TODAY or $YESTERDAY (also all the subsequent lines relating to those matching dates (not only the 5 first))

awk -v...
Showing results 1 to 4 of 4

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