![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| df -k and deleting files | ajayr111 | UNIX for Dummies Questions & Answers | 4 | 03-14-2007 08:03 PM |
| Deleting Files | bc4 | UNIX for Dummies Questions & Answers | 1 | 01-25-2007 11:27 PM |
| Deleting files | BG_JrAdmin | SUN Solaris | 1 | 11-29-2006 01:17 AM |
| Deleting old files | shiroh_1982 | Shell Programming and Scripting | 2 | 06-21-2006 04:42 AM |
| deleting files in folder | amon | Shell Programming and Scripting | 10 | 02-21-2006 10:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|