![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| df -k and deleting files | ajayr111 | UNIX for Dummies Questions & Answers | 4 | 03-14-2007 04:03 PM |
| Deleting Files | bc4 | UNIX for Dummies Questions & Answers | 1 | 01-25-2007 07:27 PM |
| Deleting files | BG_JrAdmin | SUN Solaris | 1 | 11-28-2006 09:17 PM |
| Deleting old files | shiroh_1982 | Shell Programming and Scripting | 2 | 06-21-2006 01:42 AM |
| deleting files in folder | amon | Shell Programming and Scripting | 10 | 02-21-2006 06:48 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Deleting the files
Hi,
I've to delete certain files older than X days from a Maintenance server. I'm doing this using find . -name lds\* -mtime $X \ -exec ls -l {} \; find . -name lds\* -mtime $X \ -exec rm -fR {} \; As well as I've to delete the files from another FTP server which are again older than X days. For this again earlier I was using the same thing as above. but now the Clients have made their system as sFTP and hence this command doesnot work any longer. Any clue how I can store the names of the files deleted from the Maintenance Server in a temp file and then read that temp file while deleting from the sFTP server. I'm pretty new to UNIX..still learning. so any help with complete commands would be appreciated. Also if there's any better easier way than what I'm thinking for this task woud be gr8.. Pls post replies.. thanks in adv. |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|