Search Results

Search: Posts Made By: icy_blu_blu
3,245
Posted By icy_blu_blu
Got another trouble, when i'm trying to insert...
Got another trouble, when i'm trying to insert the comparison date by using $tgl1 it won't run. what's wrong?

tgl1=`date +"%Y%m%d"`
ls *.log | gzip `awk -F'.' '/$tgl1/{print}'`
3,245
Posted By icy_blu_blu
Hi Jaduk, I read your blog & came up with this. ...
Hi Jaduk, I read your blog & came up with this.
It's working.

ls *.log | gzip `awk -F'.' '/20080716/{print}'`

Thankyou :)
3,245
Posted By icy_blu_blu
Awk Conditional
Hi Guys,
i have this files:
xyz20080716.log
opqrs20080716.log
abcdef20080716.log
xyz20080717.log
oprs20080717.log
abcde20080717.log

currentdate: 20080717.log
I want to make script to zip...
15,369
Posted By icy_blu_blu
It's working, thanks alot guys. I'm just...
It's working, thanks alot guys.
I'm just learning awk & sed and got this trouble. Gonna dig deeper.
15,369
Posted By icy_blu_blu
Get date from filename
Hi all,
I have this files:
aaa20080714.log
bbbb20080714.log
ccccccc20080714.log

Can i get the 20080714 from each file?
Showing results 1 to 5 of 5

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