Quantcast
Channel: a shell script to list files with date-1 - Unix & Linux Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Tomasz for a shell script to list files with date-1

Use the date command: date --date=yesterday +%Y%m%d 20181103 You can substitute it in a string with: $ echo pre__"$(date --date=yesterday +%Y%m%d)"__post pre__20181103__post If you understand this, you...

View Article



a shell script to list files with date-1

I have some files like T24_STFBNK_CUSTOMER_2018100107553815383733380046446200.txt. The bold numbers 20181001 is the date of the file,I need a shell script to list the files which its date is yesterday...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images