10 More Discussions You Might Find Interesting
1. 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
13 Replies
2. Shell Programming and Scripting
Need to
1. archive all the files in a directory from the previous month into a tar/gz file, ignoring all already archived 'tar.gz' files
2. Check created .tar.gz file isnt corrupted and has all the required files in it. and then remove the original files.
I am using a function to get the... (1 Reply)
Discussion started by: Prev
1 Replies
3. Shell Programming and Scripting
Hi Gurus
the count of files in a particular Directory...
ls -lrth | grep -c ^-
can any one share the command to Count the files which is Older than 3 months
So please help me out in this
Thanks in Advance (2 Replies)
Discussion started by: SeenuGuddu
2 Replies
4. Shell Programming and Scripting
Hi Viewer,
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
5 Replies
5. Shell Programming and Scripting
Please Help me
Question: - we manually moving/removing old files, when we are getting alarm as /dir1/dir2 size greater than 90%.
we manually moving/removing old files and reduce the file size to less than 90%
- I want to delete all 2months before old files once we get the thresh hold >= 90%... (3 Replies)
Discussion started by: piyus
3 Replies
6. Shell Programming and Scripting
Hello,
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.
Regards,
Alok (1 Reply)
Discussion started by: alok1301
1 Replies
7. Shell Programming and Scripting
Hi,
Iam trying to delete 6 months old files.
Iam using the following script
-ctime +190 -type f -exec echo rm {} \;
Iam getting an error saying -ctime not found. (6 Replies)
Discussion started by: Sompalle Jalaja
6 Replies
8. Solaris
HI
I HAVE LOG FILES IN THIS FORMAT
XXX.log.20080509215745
XXX.log.20080209205745
XXX.log.20080301785745
XXX.log.20080109155745
XXX.log.20080409115745
XXX.log.20080309105745
I NEED TO FIND THE FILES FROM 3 MONTHS OLD AND REMOVE
PLEASE HELP
THANKS, (13 Replies)
Discussion started by: cvdev
13 Replies
9. UNIX for Dummies Questions & Answers
please help me with this????? :confused: :confused:
i need to create a program that will run in unix that will delete all files in a given directory that is at least 3 months old. first the program will need to automatically know what date it is right now to determine the files it will... (3 Replies)
Discussion started by: godalle
3 Replies
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
3 Replies