1
How do I create a ZIP file in Shell with the files of today’s date? The files are all in the same directory.
1
How do I create a ZIP file in Shell with the files of today’s date? The files are all in the same directory.
0
You can try something like:
find . -ctime -1 -iname "*. txt" -exec zip.zip files {} \;
find has some interesting options to search for files based on the date of creation, access and modification. Take a look at his man.
Browser other questions tagged shell-script shell zip-file
You are not signed in. Login or sign up in order to post.
Have you tried anything? Know the commands
zip
,find
andman
?– Woss
I was using the compress-Archive
– bruno marques
But I was having trouble getting the files with today’s date
– bruno marques