07-31-2002
Do you want the directory to have the system date as a name - or the system date less 1 day as a name? Handles differently you see.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How do you find the create date of a directory? I can see the modification date using ls -l but I'm looking for the create date.
Many thanks
Helen (2 Replies)
Discussion started by: Bab00shka
2 Replies
2. Solaris
Hi,
I am making a script which check the directory and if there is today date file, it is showing message file is there for today date .
1) filename is accessline.win.$timestamp
example ;-accessline.win.200712211004
2) On monday i have recieved two file in this directory with current... (2 Replies)
Discussion started by: pallvi
2 Replies
3. Shell Programming and Scripting
Alright, I am sure this is a laughable question, but I don't know so I am going to ask anyway.
I have a little script I am writing to take information from one source, recode it in a certain way, and print to files for each subject I have data for. This all works perfectly. I just want to put... (6 Replies)
Discussion started by: ccox85
6 Replies
4. Shell Programming and Scripting
Hi All,
I want to find the time diffrence between currnt time and "abc.txt" file create time.
I have solve that but if the abc.txt file created last month then is there any process to find the difftent?
Exp:
Create time of abc.txt is "Apr 14 06:48"
and currect date is "May 17 23:47".... (1 Reply)
Discussion started by: priyankak
1 Replies
5. UNIX for Dummies Questions & Answers
Hi, I have a question, is there any way I can, when i create a directory, put the current date on it so that the directory name will be "name-current date"? just curious (3 Replies)
Discussion started by: aric87
3 Replies
6. Shell Programming and Scripting
I am preparing a shell script to backup a few config files on a daily basis, with a retention of 30 days. Need some help with syntax/examples:
The shell script (running as cron) would require the following:
1. create a sub-directory within a specified (backup) directory, in the format... (3 Replies)
Discussion started by: FeNiCrC_Neil
3 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a C program to search the current directory for all pipes.
1. It will print the pipe... (2 Replies)
Discussion started by: natwickley
2 Replies
8. Shell Programming and Scripting
this is what i have to find the files modified within the past 24 hours
find . -mtime -1 -type f -print0 | xargs -0 tar rvf "$archive.tar"
however i need to save/name this archive as the current date (MM-DD,YYYY.tar.gz)
how do i doo this (1 Reply)
Discussion started by: bugenhagen_
1 Replies
9. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I've been trying to do some recursive searching but not been very successful. Can someone please help.
Scenario:
I have directory structure
/dir1/dir2/dir3/
2019/
11/
17
18
19
20
so what I want to do is run a script and as its 2019/11/18/ today it would go and only search... (3 Replies)
Discussion started by: israr75
3 Replies
DDATE(1) Emperor Norton Utilities DDATE(1)
NAME
ddate - converts Gregorian dates to Discordian dates
SYNOPSIS
ddate [+format] [date]
DESCRIPTION
ddate prints the date in Discordian date format.
If called with no arguments, ddate will get the current system date, convert this to the Discordian date format and print this on the stan-
dard output. Alternatively, a Gregorian date may be specified on the command line, in the form of a numerical day, month and year.
If a format string is specified, the Discordian date will be printed in a format specified by the string. This mechanism works similarly to
the format string mechanism of date(1), only almost completely differently. The fields are:
%A Full name of the day of the week (i.e., Sweetmorn)
%a Abbreviated name of the day of the week (i.e., SM)
%B Full name of the season (i.e., Chaos)
%b Abbreviated name of the season (i.e., Chs)
%d Ordinal number of day in season (i.e., 23)
%e Cardinal number of day in season (i.e., 23rd)
%H Name of current Holyday, if any
%N Magic code to prevent rest of format from being printed unless today is a Holyday.
%n Newline
%t Tab
%X Number of days remaining until X-Day. (Not valid if the SubGenius options are not compiled in.)
%{
%} Used to enclose the part of the string which is to be replaced with the words "St. Tib's Day" if the current day is St. Tib's Day.
%. Try it and see.
EXAMPLES
% ddate
Sweetmorn, Bureaucracy 42, 3161 YOLD
% ddate +'Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H'
Today is Sweetmorn, the 42nd of Bureaucracy, 3161.
% ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995
It's Prickle-Prickle, the 50th of Bureaucracy, 3161.
Celebrate Bureflux
% ddate +'Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H' 29 2 1996
Today's St. Tib's Day, 3162.
BUGS
ddate(1) will produce undefined behaviour if asked to produce the date for St. Tib's day and its format string does not contain the St.
Tib's Day delimiters %{ and %}.
NOTE
After `X-Day' passed without incident, the Church of the SubGenius declared that it had got the year upside down - X-Day is actually in
8661 AD rather than 1998 AD. Thus, the True X-Day is Cfn 40, 9827.
AUTHOR
Original program by Druel the Chaotic aka Jeremy Johnson (mpython@gnu.ai.mit.edu)
Major rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org)
Five tons of flax.
DISTRIBUTION POLICY
Public domain. All rites reversed.
SEE ALSO
date(1),
http://www.subgenius.com/
Malaclypse the Younger, Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her
59 Bureaucracy 3161 DDATE(1)