AdminBee Greenonline 1, 4 4 gold badges 14 14 silver badges 21 21 bronze badges. Greg Greg 1. This will not work with files with spaces in them. You can use a while loop instead which should take care of files with spaces.
Neeraj Mhatre Neeraj Mhatre 1. The OP asked "I want to delete all the files older than 15 days", which your answer doesn't provide. They also did not ask for a restriction to php files. If that is your blogspot page, please indicate ownership explicitly, instead of the generic "below link", otherwise you become suspect of simply spamming your site.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.
Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 1. Show Threads. Show Posts. Shell Programming and Scripting. Archiving older files. Registered User. Join Date: Sep Also keep the log of files moved with the size of each file. Code :. Last edited by csierra; at PM.. Reason: Add more information. Join Date: Dec We don't do Scripts For Hire. Show your work and where you've got problems and we'll help you.
I included more information. I look forward to your help. How about this? Hello Pravin27, Thanks a lot your for response. I only want to add more files to the archive directory to comply with the find condition. Regards, Carlos. Archiving files using shell script. Currently the script is using the mget and mput commands to do the copying of the files. While I am trying to move the files from local to remote server, I would also like to archive Active Oldest Votes. You can maybe write a rename script and use that in place of the mv : find.
John Doyle John Doyle 6, 5 5 gold badges 31 31 silver badges 39 39 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Related
0コメント