In a shell scipt i use test command to check for a file which has the date as part of its file name
File name example:- ABCDEFG_20100330.csv.gz
Shell script:- if ( test ! -f /opt/ABCDEFG_`date +%Y%m%d`* )
This checks for a file which has the current date in its format.
How do i do the same but check for the day before file. ( eg current date -1day)
I would also need to unzip and move this file to diffrerent directory