Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Date in filename from crontab Post 303040113 by gull04 on Wednesday 23rd of October 2019 10:05:08 AM
Old 10-23-2019
Hi Guys,

This request has been posted a number of times, as a simple search will show - thst being said this thread is probably a good place to start.

Regards

Gull04
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

filename to contain date

hello, can anyone tell me how to rename a filename in a script to contain the current date? i have searched for the answer but with little success! many thanks rkap (4 Replies)
Discussion started by: rkap
4 Replies

2. Shell Programming and Scripting

display filename with date

Hi buddies, I have a doubt. I want to display filename with date in the following format.Is there any way to do this. Kindly give me the solution. I want to display the result in the following manner. test1.txt 03/28/2008 testlog.log 02/20/2008 Please let me know one solution how to do... (1 Reply)
Discussion started by: pstanand
1 Replies

3. Shell Programming and Scripting

Appending date to filename

hi i need to rename a.txt to a_12052008.txt using the batch file i used reanme a.txt a_%date%.txt ......but its done nothing am using win2000 professional edition. system date format is : The current date is: Mon 2008-05-12 can anyone help me to rename thanks aemu (5 Replies)
Discussion started by: aemunathan
5 Replies

4. Shell Programming and Scripting

Concatenating the filename with date

Hi, I want to concatenate the filename with the current date using the get command in ftp. for ex: <filename><date> emp101_20080526 Can you please let me know the command for this. thanks, Aswarth. (9 Replies)
Discussion started by: Aswarth
9 Replies

5. Shell Programming and Scripting

Get date from filename

Hi all, I have this files: aaa20080714.log bbbb20080714.log ccccccc20080714.log Can i get the 20080714 from each file? (6 Replies)
Discussion started by: icy_blu_blu
6 Replies

6. UNIX for Dummies Questions & Answers

Date in filename

how do i add the date for the filename? for example filename20080917 (3 Replies)
Discussion started by: khestoi
3 Replies

7. Shell Programming and Scripting

date from filename

Hi all I have the following question: With this command, I get the latest file in a directory. lastfile =`ls -1tr | tail -n 1` echo $lastfile The output is then: partner131210.txt (meaning 13th December 2010) My goal is to get the date into a variable and to obtain a final variable... (4 Replies)
Discussion started by: davis77
4 Replies

8. Shell Programming and Scripting

Get the oldest date based on date in the filename

I am using ksh93 on Solaris. Ok, this may seem like a simple request at first. I have a directory that contains sets of files with a YYYYMMDD component to the name, along with other files of different filespecs. something like this: 20110501_1.dat 20110501_2.dat 20110501_3.dat... (2 Replies)
Discussion started by: gary_w
2 Replies

9. Shell Programming and Scripting

How to append date to filename, but base it on yesterday's date?

Hello, I'd like to write a monthly archive script that archives some logs. But I'd like to do it based on yesterday's date. In other words, I'd like to schedule the script to run on the 1st day of each month, but have the archive filename include the previous month instead. Here's what I... (5 Replies)
Discussion started by: nbsparks
5 Replies

10. UNIX for Beginners Questions & Answers

How to change existing date to current date in a filename?

Suppose i have a list of files in a directory as mentioned below 1. Shankar_04152019_ny.txt 2. Gopi_shan_03122019_mi.txt 3. Siva_mourya_02242019_nd.txt .. . . . . 1000 . Jiva_surya_02282019_nd.txt query : At one shot i want to modify the above all filenames present in one path with... (4 Replies)
Discussion started by: Shankar455
4 Replies
EPISODER(1)						      General Commands Manual						       EPISODER(1)

NAME
episoder - TV show episode reminder. SYNOPSIS
episoder [options] DESCRIPTION
episoder is a tool to tell you about new episodes of your favourite TV shows Global options -h Show help and quit. -c FILE Use FILE for configuration values (default is ~/.episoder). -b Update episoder's database -B Force-update the database, disregard information on when shows were last updated -v Enable verbose operation -w Enable very verbose (debug) operation -V Show program version and quit -p Show available parsers -l FILE Log to FILE instead of stdout Options for database update -d [YYYY-MM-DD] Remove episodes prior to this date (default: yesterday) -d NUM Remove episodes that aired more than NUM days ago (default: 1) -i Ignore date (don't remove old episodes), overrules -d -f FILE Get data from FILE, ignore configured sources (needs -P) -P PARSER Force PARSER to be used (only in combination with -f) Managing shows -L Display a list of all shows in episoder's database -a URL Add the show located at URL to the database -r ID Remove the show with the number ID from the database -E ID Enable updates for the show with the number ID -D ID Disable updates for the show with the number ID Options for console output -d [YYYY-MM-DD] Only show episodes newer than date (default: yesterday) -d NUM Only show episodes that are less then NUM days old (default: 1) -i Ignore date (overrules -d and -n) -n DAYS Number of future DAYS to show (default: 2). This value is relative to the date set with -d. -s TEXT Search the database for TEXT -C Don't show any colors in the output CONFIG FILE
The configuration file consists of a section with settings for the program and a list of sources to be used to build the database. agent=foo Set the user-agent string to be used by wget (was required when tvtome blocked wget, might not be needed nowadays) data=/path/to/file Specifies the file to be used to store the information about upcoming shows. If, instead of a file, you supply a database url (as expected by sqlalchemy, eg. 'mysql://localhost/episoder'), episoder is going to use that database for storage instead. src=http://some.web.add/ress Each src entry specifies a URL with episode information. Make sure you have the appropriate plugin before adding random new URLs (check with -p). Episoder currently understands the following types of source: src=http://www.epguides.com/CSI/ src=http://www.tv.com/CSI/show/19/ While this in no longer episoder's way of knowing which shows to parse (see ``Managing shows''), for compatibility reasons all shows listed in the config file will automatically be added to episoder's show database (as if specified with -a). format=unquoted format string This allows you to customize episoder's output. Available fields are: %airdate The episode's airdate as YYYY-MM-DD %show Name of the show %season Current season %epnum Episode's number in season %eptitle Title of the episode %totalep Episode's total number %prodnum Production number If undefined, the default value of %airdate %show %seasonx%epnum (eg. "2005-07-29 Monk 4x04") is used. dateformat=unquoted string describing the format Here you can define the date format you'd like to be used for the output. To get a list of all possible fields, see date(1). The default is %a, %b %d, %Y CRON
You might want to have your episode db rebuilt on a regular basis (i.e. daily). The easiest way to achieve this is with a simple cron job: crontab -l > crontab echo "40 5 * * * episoder -b" >> crontab crontab crontab FILES
~/.episoder - default configuration file AUTHOR
This manual page was written by Stefan Ott SEE ALSO
crontab(1). EPISODER(1)
All times are GMT -4. The time now is 04:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy