Friday, December 3, 2021

Command to search file in a Linux folder; Show timestamp of file UNIX/LINUX


$ find /appName/jython2.7.0/bin/ArchivedFiles/ -name  "*INC*MAR-21*.csv" -printf '%Tc %p\n'


 Example:

[appNameqa@serveraddress base_domain]$ find /appName/jython2.7.0/bin/ArchivedFiles/ -name  "*MAR-21*.csv" -printf '%Tc %p\n'


Sample output:

Tue 14 Sep 2021 02:20:59 PM EDT /appName/jython2.7.0/bin/ArchivedFiles/fineNAme-corrections.csv

Mon 27 Sep 2021 12:22:25 PM EDT /appName/jython2.7.0/bin/ArchivedFiles/fineNAme-delta.csv

Thu 17 Jun 2021 09:53:20 AM EDT /appName/jython2.7.0/bin/ArchivedFiles/fineNAme-20210616033652.csv

Fri 24 Sep 2021 03:17:08 PM EDT /appName/jython2.7.0/bin/ArchivedFiles/fineNAme-full_submission.csv


No comments: