hi all,
i need to find same files in my directory that looks like this format
20121017145949639.xml (YYYYMMDD*.xml)
thanks for help
find . -name "20121017*.xml"
1 Like
What bipinajith suggested is a good solution if you want all files in the file hierarchy rooted in the current directory with names that start with "20121017" and end with ".xml". If you just want files in the current directory (but not those in subdirectories) that have names that start with a YYYYMMDD value that matches today's date and end with ".xml", try this:
ls -1d $(date +%Y%m%d)*.xml
1 Like
THANKS ALL FOR REPLY IT WORKS