Search Results

Search: Posts Made By: beyondmondays
17,379
Posted By beyondmondays
kruz@ces-lt-it-kg:~$ awk 'BEGIN {print srand()}' ...
kruz@ces-lt-it-kg:~$ awk 'BEGIN {print srand()}'
1
kruz@ces-lt-it-kg:~$

So i tried substituting srand() with an external date variable, same results.




kruz@ces-lt-it-kg:~$ cat test |...
17,379
Posted By beyondmondays
I reran the command and I'm still unable to get...
I reran the command and I'm still unable to get the line to output. For testing, i created a test file that had just that line in it, and piped it into the awk command, and I'm still unable to get it...
17,379
Posted By beyondmondays
Hello, back at this again So I know this...
Hello, back at this again


So I know this tape is older than 90 days, the 2nd and 5th colum (archive and creation date) are both past 90 days.



TAPEARCHIVES 1572970010.744 ...
17,379
Posted By beyondmondays
Well darn, it's a monday, thanks for catching...
Well darn, it's a monday, thanks for catching that.
17,379
Posted By beyondmondays
*facepalm* I mistyped that, I'll edit my...
*facepalm*


I mistyped that, I'll edit my main post above, I'm actually needing to compare it to the 5th column, which is the tape creation date.
17,379
Posted By beyondmondays
I'd like to end up having this in a cron job that...
I'd like to end up having this in a cron job that runs daily at midnight.


So i'd like the time of the script run to be the start of the backwards time period.
17,379
Posted By beyondmondays
awk IF date comparison help
Hey everyone,

I'm trying to create a script using awk and if that will list all of our aws tapes that have archived date that is past 90 days from todays current date, so that I can pass that to...
Showing results 1 to 7 of 7

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