10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Will this work to delete files 30 days old in $backupDir or is there a better way to do it?
find $backupDir -type f -mtime +30 -exec rm {} \; (2 Replies)
Discussion started by: wyclef
2 Replies
2. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
Discussion started by: dsfreddie
1 Replies
4. UNIX for Dummies Questions & Answers
Hi guys..
Currently me using AIX 5.3.0.0
I have these files generated by Oracle in /tmp folder..
# date
Mon Sep 26 11:53:31 BEIST 2011
# pwd
/tmp
# df -g .
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd3 10.00 3.65 64% 62479 7% /tmp... (2 Replies)
Discussion started by: mushr00m
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Discussion started by: alok.behria
4 Replies
6. Shell Programming and Scripting
Hi ,
I need to remove files from a specific directory which are 7 days old
using folowing find comand as:
find /home/dir1/log -name "run*.log" -mtime +6 -prune -exec rm -f {} \;
but my script should traverse to /home/dir1/log
and them delete the specified files in the directory.
i.e... (2 Replies)
Discussion started by: Navatha
2 Replies
7. Shell Programming and Scripting
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies
8. UNIX for Dummies Questions & Answers
I have a directory that contains files. I would like the command that deletes all files that are over 30 days old. Delete files based on creation date and not modified. (2 Replies)
Discussion started by: GEBRAUN
2 Replies
9. Shell Programming and Scripting
Simple question I am sure - but one that I dont know the answer to nevertheless..
I have a directory that I store log files in - but I wish to run a daily script in cron to delete all files in this directory that have not been modified within the last 7 days...
Can anyone help me? (10 Replies)
Discussion started by: frustrated1
10 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
how to write a script that will indentify the files in a directory which are 7 days old and delete those files.
Thanks in advance
Cheers
Arunava (8 Replies)
Discussion started by: arunava_maity
8 Replies