Sponsored Content
Full Discussion: Please help!!!
Top Forums Shell Programming and Scripting Please help!!! Post 302080840 by mhssatya on Thursday 20th of July 2006 06:10:56 PM
Old 07-20-2006
Reborg,

If I give like CARE01_DLY_???_YYYYMMDD how can the system calculate that it's todays file only. I need to make sure that that is today file.

Do i need to give this like this

awk '{data[FNR] = $0; out=CARE01_DLY_???_date+%Y%m%d"_new"; file[FNR]=out;} END { if ( FNR - 2 == $1) { for ( i=2 ; i < FNR; i++ ) { print data > file[i]} close(file[i])}else { print "error"} }' CARE01_DLY_???_date+%Y%m%d

This is not working for me. Please suggest
 
All times are GMT -4. The time now is 07:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy