09-11-2009
Every day when the job wil run and pick up the file from products directory, you can create a new directory using mkdir (as shown in above post), and then put the file there. Use -p option to create the parent(s) direcotires as well i.e. for the new year/month.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to delete files that are one day old
condition is files should be of current month only ie if iam running script on 1 march it should not delete files of 28 feb(29 if leap year :-)}
any modifications to
find $DIR -type f -atime +1 -exec rm -f{}\; (4 Replies)
Discussion started by: maverick
4 Replies
2. Shell Programming and Scripting
I have a date that looks like this:
2008/100:18:40:47.040
I need it to look like this:
2008 04 09 18 40 47 040
I have looked at datecalc and it doesn't seem like it takes the day of year for this year (or whatever year is input) and converts it into month and day. It also has to account... (2 Replies)
Discussion started by: ajgwin
2 Replies
3. Shell Programming and Scripting
Dear All,
Actually, i'm doing some reporting job and i need to pass yesterday's date in Year-Month-Day format(e.g. 2009-06-10) to another program for generating 2009-06-10 report.
to get today's date, it's easy to just date '+%Y%m%d' , but no idea how can i get this kind of format for... (2 Replies)
Discussion started by: tiger2000
2 Replies
4. AIX
Hello,
How do I convert unix timestamp value to 'normal' date format - to get year month and day values ?
Looks like it's easy to do using GNU date (linux systems). But how do I do tthis on AIX ?
I don't want to write C program, any ways to do that using unix shells ?
thanks (1 Reply)
Discussion started by: vilius
1 Replies
5. Shell Programming and Scripting
Hi
I have files like
abc_cd_20110302_123423
abc_cd_ef_20110301_123423
abc_cd_ef_20110403_123423
abc_ef_20110401_123423
I want to extract the
the year and month associated with each file.
I tried
logfileyearmonth=`echo $logfile | awk -F_'{print $NF}'`
Any other way can I... (6 Replies)
Discussion started by: dgmm
6 Replies
6. Shell Programming and Scripting
hello,
I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc.
I need to do it for several years and leap years as well.
What is the best way to do it ?
Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies
7. Shell Programming and Scripting
Hi All,
I need to find all files other than first two files dates & last file date for month and month/year wise list.
lets say there are following files in directory
Mar 19 2012 c.txt
Mar 19 2012 cc.txt
Mar 21 2012 d.txt
Mar 22 2012 f.txt
Mar 24 2012 h.txt
Mar 25 2012 w.txt
Feb 12... (2 Replies)
Discussion started by: Makarand Dodmis
2 Replies
8. Shell Programming and Scripting
Hi All,
I find all files for same month and year
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 c.txt
-rwxr-xr-x 1 user userg 1596 Mar 21 2012 d.txt
-rwxr-xr-x 1 user userg 1596 Mar 22 2012 f.txt
-rwxr-xr-x 1... (8 Replies)
Discussion started by: Makarand Dodmis
8 Replies
9. Shell Programming and Scripting
how to find all files other than first two dates & last date per month and year
Hi All,
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 a.txt
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 b.txt
-rwxr-xr-x 1 user userg ... (6 Replies)
Discussion started by: Makarand Dodmis
6 Replies
10. Shell Programming and Scripting
Hi All,
lets say there are following files in directory
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 a.txt
-rwxr-xr-x 1 user userg 1596 Mar 19 2012 b.txt
-rwxr-xr-x 1 user userg 1596 Mar 22 2012 c.txt
-rwxr-xr-x 1 user userg 1596 Mar 24 2012 d.txt... (16 Replies)
Discussion started by: Makarand Dodmis
16 Replies
LEARN ABOUT DEBIAN
blaze-list
BLAZE-LIST(1) BlazeBlogger Documentation BLAZE-LIST(1)
NAME
blaze-list - lists blog posts or pages in the BlazeBlogger repository
SYNOPSIS
blaze-list [-cpqrsCPSV] [-b directory] [-I id] [-a author] [-t title] [-T tag] [-d day] [-m month] [-y year] [-n number]
blaze-list -h|-v
DESCRIPTION
blaze-list lists existing blog posts or pages in the BlazeBlogger repository. Additionally, it can also display basic repository
statistics.
OPTIONS
-b directory, --blogdir directory
Allows you to specify a directory in which the BlazeBlogger repository is placed. The default option is a current working directory.
-I id, --id id
Allows you to display a single blog post or a page with the specified id.
-a author, --author author
Allows you to list blog posts or pages by the selected author.
-t title, --title title
Allows you to list blog posts or pages with matching title.
-T tag, --tag tag
Allows you to list blog posts or pages with matching tag.
-d day, --day day
Allows you to list blog posts or pages from the specified day of a month. The value has to be in the "DD" form.
-m month, --month month
Allows you to list blog posts or pages from the specified month. The value has to be in the "MM" form.
-y year, --year year
Allows you to list blog posts or pages from the specified year. The value has to be in the "YYYY" form.
-n number, --number number
Allows you to specify a number of blog posts or pages to be listed.
-p, --page
Tells blaze-list to list pages.
-P, --post
Tells blaze-list to list blog posts. This is the default option.
-S, --stats
Tells blaze-list to display statistics.
-s, --short
Tells blaze-list to display each blog post or page information on a single line.
-r, --reverse
Tells blaze-list to display blog posts or pages in reverse order.
-c, --color
Enables colored output. When supplied, this option overrides the relevant configuration option.
-C, --no-color
Disables colored output. When supplied, this option overrides the relevant configuration option.
-q, --quiet
Disables displaying of unnecessary messages.
-V, --verbose
Enables displaying of all messages. This is the default option.
-h, --help
Displays usage information and exits.
-v, --version
Displays version information and exits.
EXAMPLE USAGE
List all blog post:
~]$ blaze-list
ID: 11 | 2010-07-05 | Jaromir Hradilek
Title: Join #blazeblogger on IRC
Tags: announcement
ID: 10 | 2009-12-16 | Jaromir Hradilek
Title: Debian and Fedora Packages
Tags: announcement
etc.
List all blog post in reverse order:
~]$ blaze-list -r
ID: 1 | 2009-02-10 | Jaromir Hradilek
Title: BlazeBlogger 0.7.0
Tags: release
ID: 2 | 2009-02-11 | Jaromir Hradilek
Title: BlazeBlogger 0.7.1
Tags: release
etc.
List all pages:
~]$ blaze-list -p
ID: 5 | 2009-02-10 | Jaromir Hradilek
Title: Downloads
ID: 4 | 2009-02-10 | Jaromir Hradilek
Title: Themes
etc.
List each blog post on a single line:
~]$ blaze-list -s
ID: 11 | 2010-07-05 | Join #blazeblogger on IRC
ID: 10 | 2009-12-16 | Debian and Fedora Packages
etc.
Display a short version of blog statistics:
~]$ blaze-list -Ss
There is a total number of 11 blog posts and 5 pages in the repository.
SEE ALSO
blaze-config(1), blaze-add(1)
BUGS
To report a bug or to send a patch, please, add a new issue to the bug tracker at <http://code.google.com/p/blazeblogger/issues/>, or visit
the discussion group at <http://groups.google.com/group/blazeblogger/>.
COPYRIGHT
Copyright (C) 2009-2011 Jaromir Hradilek
This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Version 1.2.0 2012-03-05 BLAZE-LIST(1)