10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to find a way to archive all files older than a given date but there are some conditions that are making it difficult for me to find the correct command:
Linux based system (RH5)
there are multiple layers of directory depth I need to search
each file should be tar'd in it's original... (1 Reply)
Discussion started by: KaosJedi
2. Shell Programming and Scripting
Need to write a shell script on AIX box which will connect to different servers using SFTP and get the file count of only 1 day older files. (purging list)
How to achieve this?
On local server we can use:
find <path> -type f -mtime +1
But how to do it in case of SFTP? Please advise. Thanks... (9 Replies)
Discussion started by: vegasluxor
3. Shell Programming and Scripting
I have a qnap TS259 that is running ubuntu. Have successfully setup back scripts that are initiated by cron.
I would like to create a couple scrypts that would operate on the recycle bins for both drives. Just want to be able to run the script manually that would walk through both directories... (13 Replies)
Discussion started by: mackconsult
4. UNIX and Linux Applications
Can anyone explain why Firefox 10 keeps losing history older than 2 months? (1 Reply)
Discussion started by: cokedude
5. Shell Programming and Scripting
I have directory /test/logs which has multiple logs:
audit.log is current log file and audit.log.X are archive log files. I need to search within these log files and count word "error-5" logged within last 6 months... (4 Replies)
Discussion started by: djanu
6. Shell Programming and Scripting
I need logic code for moving the logs files from one directory to another directory.
source :/xxxxxx/ xxxxxx / xxxxxx / xxxxxx / log --- under log directory we have so many files from last two years
Here I need to check the files older than two months and I need to move in... (5 Replies)
Discussion started by: munna_su
7. Shell Programming and Scripting
I want to gzip files in a folder in bulk i.e. all files older than 1 month should be in *.gz format. Could you please suggest how this can be achieved. Thanks.
Alok (1 Reply)
Discussion started by: alok1301
8. Shell Programming and Scripting
My log files stored in the date format format below(log_20080714072942):
I'm looking for a shell script which deletes all files which is older than 3 months from today.
Bhagat (3 Replies)
Discussion started by: bhagat.singh-j
9. Shell Programming and Scripting
I wrote this script to find files older than time parameter, count the number of files, and send an email to me that some files are in a particular folder. For the particular path, the script should wait delay parameter before running again.
For example, assuming the input file looks... (4 Replies)
Discussion started by: kayarsenal
10. Shell Programming and Scripting
A script or command to list files older than 2 months in a specified directory and remove it. (3 Replies)
Discussion started by: pbekal