10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
we need to have periodic clean up implemented in our sap directory \\sapds\PR1\int\scm\snp\outbound\snapshot. which needs unix script for Deleting files older than 14 days automatically in sap system unix os. (1 Reply)
Discussion started by: kvkreddy_b2w
1 Replies
2. 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
3. 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
4. AIX
Hi
In my aix server under the location "/usr/sap/SAPXI/extract", I have a lot of log files.
I need a script which is to be added in crontab so that the files and directories older than 14 days should get deleted automatically from the location "/usr/sap/SAPXI/extract".
Please advise me.... (3 Replies)
Discussion started by: samsungsamsung
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
on AIX 6.1,
is there any commande line to remove the files older than n days in a directory ?
Thanks. (2 Replies)
Discussion started by: big123456
2 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
I'm new in Unix shell scripting and i need someone to help me to make Script that run all time watching my directory that files uploaded to it via FTP (/mydir/incoming_files), if any files exists in it then (if many files exists, then sort files and load them ascending) it‘ll checks the size of the... (1 Reply)
Discussion started by: m_fighter
1 Replies
8. UNIX for Dummies Questions & Answers
Script help, I need to delete files that are older than 7 days. I do that automatically but I know that a cron job can do the job for me. Any help is greatly appreciated, as you can see, I am a DOS or WINDOWS guy. Little on UNIX. Thanks (3 Replies)
Discussion started by: texasoeb
3 Replies
9. 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
10. Shell Programming and Scripting
Hello guys I'm writing a script and I need some help. I'm almost done but I think I have a problem with my ffind command. I need the scripts to delete files are 60 days old and then append the filenames to a text file on the days they were deleted. If someone can help me I would be thankful. (5 Replies)
Discussion started by: aojmoj
5 Replies