Sponsored Content
Top Forums UNIX for Dummies Questions & Answers deleting files with dates 3 months ago Post 88666 by godalle on Monday 7th of November 2005 09:55:38 PM
Old 11-07-2005
deleting files with dates 3 months ago

please help me with this????? Smilie Smilie

i need to create a program that will run in unix that will delete all files in a given directory that is at least 3 months old. first the program will need to automatically know what date it is right now to determine the files it will delete...guys help me please Smilie Smilie Smilie
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Deleting files created before two days ago

Dear All: I want to build a shell that delete files created two or more days ago ... I think it could be built using a special command with ls or grep, I'd apreciate any help from you guys I have a lot of log files from november, december, january and this tool will help me a lot The files... (3 Replies)
Discussion started by: josecollantes
3 Replies

2. Shell Programming and Scripting

Cron to run first day of month to calculate date 3 months ago

Hi, I would like to find out how can i calculate a date which is 3 months ago. I intend to run a cron job on the 1st of every month, and calculate the month 4 months earlier from the date. For example, if today's date is 1st May 2007, i would like to return 012007( January 2007). i can get... (1 Reply)
Discussion started by: new2ss
1 Replies

3. Shell Programming and Scripting

calculate 13 months ago

hi, I have a big file that contains datas since 4 years ago. I need re-create this file but just lines that are 13 months ago from today. see what I have: ( I have a file.ksh that calls this file.scl ok !!) ======== file.scl ================ /STATISTICS=stderr /STABLE /NODUPLICATES... (3 Replies)
Discussion started by: andrea_mussap
3 Replies

4. Shell Programming and Scripting

calculate 13 months ago

hi, I have a big file that contains datas since 4 years ago. I need re-create this file but just lines that are 13 months ago from today. see what I have: ( I have a file.ksh that calls this file.scl ok !!) ======== file.scl ================ /STATISTICS=stderr /STABLE /NODUPLICATES... (4 Replies)
Discussion started by: andrea_mussap
4 Replies

5. Shell Programming and Scripting

Deleting files and directory's older than 3 months

I have a qnap TS259 that is running ubuntu. Have successfully setup back scripts that are initiated by cron. I would like to create a couple scrypts that would operate on the recycle bins for both drives. Just want to be able to run the script manually that would walk through both directories... (13 Replies)
Discussion started by: mackconsult
13 Replies

6. Shell Programming and Scripting

Deleting the files between particular dates

Hi Please help me for the below task. In my home directory if I run ls -l command, it lists all the files, here I want to delete files created from January 2014 to Aug 2014...but I need to keep the files which are created after September 01 2014. Thanks Siva (3 Replies)
Discussion started by: kumar85shiv
3 Replies
mhc(1)							      General Commands Manual							    mhc(1)

NAME
mhc2palm - add/copy articles from mhc to PalmOS. SYNOPSIS
mhc2palm [options] files... DESCRIPTION
This manual page documents briefly the mhc2palm commands. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. mhc2palm is a program that add or copy articles from mhc to PalmOS. OPTIONS
A summary of options is included below. -a Add mhc articles to a palm. all the original records of the palm will remain. -i Copy mhc articles into the palm. all the original records of palm will be lost. -n Do nothing effectives. Useful for checking. -d dev Set the device file connected to the palm. default value is /dev/pilot. -r dir Set repository directory of the mhc. default is ~/Mail/schedule. YYYYMMDD-yyyymmdd set a start and end date of scanning mhc. if omitted, scan from 3 months ago to 3 months after. SEE ALSO
adb2mhc(1) gemcal(1), mhc-sync(1), palm2mhc(1), today(1), mhc(5). AUTHOR
This program was written by Yoshinari Nomura <nom@quickhack.net> and this manual page was written by Fumitoshi UKAI <ukai@debian.or.jp>, for the Debian GNU/Linux system (but may be used by others). 23 Jun 2000 mhc(1)
All times are GMT -4. The time now is 05:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy