10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I want to list the files older than 10 days. Currently am using
find ./ -mtime +10 -exec ls -ltr {} \;
command. But I want to execute the same command in 16 directories at a time and want an output asking to remove those file?
Please help me to design the script.
regards,
Ajay (3 Replies)
Discussion started by: 02Ajay
3 Replies
2. Shell Programming and Scripting
HI
how can i list files above 5 days old
i want to keep only last 5 days application logs
Regards,
Ben (3 Replies)
Discussion started by: bentech4u
3 Replies
3. HP-UX
Hello; trying to find processes older than n days, mostly user shells Tried the following code on 11.31 box: in this case older than 5 days
UNIX95= ps -ef -o user,pid,ppid,cpu,etime,stime | grep "-" | awk '{print $2}' | xargs ps -ef|grep -v '?' |\
awk '$5 !~ ""' | awk '($5 ~ "$(date "+%b")")... (6 Replies)
Discussion started by: delphys
6 Replies
4. AIX
In AIX I am trying to get the processes ran by user declan using the following format:
ps -aef -o user,pid,etime,args | grep declan
Then I get a result similar to (for example):
declan 103264 123-12:47:33 /applications/apache/1.3.39.0/bin/httpd -d /var/applications/apache/www1
... (0 Replies)
Discussion started by: chipahoys
0 Replies
5. Shell Programming and Scripting
Hi Frnds,
I have to list the files which are older than 7 days in the given directory.
it should consider only the files and should not show subdirectories.
Thanks,
Raja (3 Replies)
Discussion started by: smr_rashmy
3 Replies
6. Solaris
Hi,
I want to find the list of all the files under a directory (including it's subdirectories) last modified 30 days, 60 days, 90 days..also I want to find out the rate at which the disk space is growing.
Please help. (3 Replies)
Discussion started by: b.paramanatti
3 Replies
7. Shell Programming and Scripting
Hi, I need a .ksh script that lists all the process that are currently running and older than 3 days. once the process list is available i need to mail the list and then kill those processes.
Quick response is highly appreciated :b:
Thanks in Advance!!!
Sri (3 Replies)
Discussion started by: Sriranga
3 Replies
8. Programming
Hi,
How can I get a list of all the running processes, in C? (13 Replies)
Discussion started by: yaron
13 Replies
9. Shell Programming and Scripting
Say folder archive/ contains many folder each created on a day. this folder may contain files. i want to write a script to delete all the folder inside archive/ which are 7 days older. i used the below script for the reason.
find archive -mtime +7 -type d -exec rm -r {} \;
pls suggest me if... (3 Replies)
Discussion started by: krishnarao
3 Replies
10. UNIX for Dummies Questions & Answers
All,
Is there is anyother single command that will handle
ls -lrt | tail -10
Please let me know
Thanks,
Arun. (1 Reply)
Discussion started by: arunkumar_mca
1 Replies