Crontab deleting files command question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Crontab deleting files command question
# 8  
Old 05-05-2013
Precise is
-mtime +120 finds files older than 120 days.
-mtime 0 finds files from today.
-mtime +0 finds files older than today, i.e. not from today.

For academic interest, I have written a cleanup script with
\( -mtime +$max_days -o -mtime -0 \)
that cleans files older than max_days and files with a future time stamp.

Last edited by MadeInGermany; 05-05-2013 at 01:36 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Crontab question

I need to run an script every 10th and 25th day in every month at 11pm. the script name is /home/ss/automated.sh I tried to execute the script every day and everytime with the below syntax. its not executing it from crontab. * * * * * /home/ss/automated.sh Any idea why it not... (6 Replies)
Discussion started by: ramkumar15
6 Replies

2. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies

3. Shell Programming and Scripting

Deleting all empty files in sub directories with a command

Hello Friends, Im trying to delete empty files in subdirectories with a command. I can find them checking only one directory in each step and then show them with my command like below moreover i could not add removing part: ls -l */* | awk '{if ($5==0) printf "%3s %2d %s... (5 Replies)
Discussion started by: EAGL€
5 Replies

4. Shell Programming and Scripting

output file of the shell script running through crontab is deleting automatical daily.

Dear Friends, I am working on IBM AIX. I have written one script and kept in the crontab as to run daily at 11:38 AM. and the output of the script to be appended to the file generated with the month name. but my file deleting daily and the new file is creating with the output of the shell... (2 Replies)
Discussion started by: innamuri.ravi
2 Replies

5. Shell Programming and Scripting

Deleting files using find command

I want to find the files and delete all the files except the last file. I am using find command , I am sending the find output to a file and getting all the lines except the last one and sending it to the remove command . This is not working. can anyone help me out to do it in the find command... (8 Replies)
Discussion started by: deepaklanka
8 Replies

6. UNIX for Dummies Questions & Answers

Deleting access_log.processed in crontab

Hi, I've worked out that my server was getting clogged with the access_log.processed file. I deleted it using the command > /var/www/vhosts/domain.com/statistics/logs/access_log.processed I also set that up as a crontab job for every Wednesday. What I was wondering is the version using... (4 Replies)
Discussion started by: chickenhouse
4 Replies

7. Shell Programming and Scripting

command for deleting log files based on some condition

Hello, Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days. Any help will be highly appreciated. Thanks, Pulkit (4 Replies)
Discussion started by: pulkit
4 Replies

8. UNIX for Dummies Questions & Answers

file deleting question

somehow one of my directories got a number of files whose names start with a dash - e.g. -1129.txt how can I remove them? If I issue rm -1129.txt I get the message of illegal options if I issue rm /-1129.txt I get a message that -1129.txt is not found Lisa HP-UX 11.23 i64 (3 Replies)
Discussion started by: LisaS
3 Replies

9. UNIX for Dummies Questions & Answers

Deleting files with zero length using ls command

Hi, How can I use ls command to Delete all files with zero length in a given path using ls command (I guess awk is required!)? Thanks. (6 Replies)
Discussion started by: GNMIKE
6 Replies

10. UNIX for Dummies Questions & Answers

crontab question

I'm trying to create a crontab entry that will run the who command once per hour Monday-Friday. Any command output should be appended to the file whoison.log in my home directory. This is what I wrote: crontab 0 * * * 1-5 who >> /home/myhome/whoison.log Did I do this right? Thanks (7 Replies)
Discussion started by: Relykk
7 Replies
Login or Register to Ask a Question
open_jtalk(1)						      General Commands Manual						     open_jtalk(1)

NAME
open_jtalk -- Japanese TTS system SYNOPSIS
open_jtalk [options] [infile] DESCRIPTION
This manual page documents briefly the open_jtalk command. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu- mentation in the GNU Info format; see below. open_jtalk is a program that synthesize speech waveform from Japanese texts. It uses HMMs trained by the HMM-based speech synthesis system (HTS). OPTIONS
A summary of options is included below. -x dir dictionary directory -td tree decision tree files for state duration -tm tree Show version of program. -tf tree decision tree files for Log F0 -tl tree decision tree files for low-pass filter -md pdf model files for state duration -mm pdf model files for spectrum -mf pdf model files for Log F0 -ml pdf model files for low-pass filter -dm win window files for calculation delta of spectrum -df win window files for calculation delta of Log F0 -dl win window files for calculation delta of low-pass filter -ow s filename of output wav audio (generated speech) -ot s filename of output trace information -s i sampling frequency [16000][1--48000] -p i frame period (point) [80][1--] -a f all-pass constant [0.42][0.0--1.0] -g i gamma = -1 / i (if i=0 then gamma=0) [0][0--] -b f postfiltering coefficient [0.0][-0.8--8.0] -l regard input as log gain and output linear one (LSP) -u f voiced/unvoiced threshold[0.5][0.0--1.0] -em tree decision tree files for GV of spectrum -ef tree decision tree files for GV of Log F0 -el tree decision tree files for GV of low-pass filter -cm pdf filenames of GV for spectrum -cf pdf filenames of GV for Log F0 -cl pdf filenames of GV for low-pass filter -jm f weight of GV for spectrum [1.0][0.0--2.0] -jf f weight of GV for Log F0 [1.0][0.0--2.0] -jl f weight of GV for low-pass filter [1.0][0.0--2.0] -k tree GV switch -z i audio buffer size [1600][0--48000] infile text file option '-d' may be repeated to use multiple delta parameters. generated spectrum, log F0, and low-pass filter coefficient sequences are saved in natural endian, binary (float) format. EXAMPLE
If you installed hts-voice-nitech-jp-atr503-m001 in the current directory, the following command let you make a voice file from input.txt: % open_jtalk -s 48000 -p 240 -a 0.55 -td tree-dur.inf -tm tree-mgc.inf -tf tree-lf0.inf -tl tree-lpf.inf -md dur.pdf -mm mgc.pdf -mf lf0.pdf -ml lpf.pdf -dm mgc.win1 -dm mgc.win2 -dm mgc.win3 -df lf0.win1 -df lf0.win2 -df lf0.win3 -dl lpf.win1 -em tree-gv-mgc.inf -ef tree-gv-lf0.inf -cm gv-mgc.pdf -cf gv-lf0.pdf -k gv-switch.inf -ow output.wav -x dic_dir input.txt AUTHOR
This manual page was written by Koichi Akabe vbkaisetsu@gmail.com for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. open_jtalk(1)