Insert date question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: tickticker
Date:  
Subject: Insert date question
Most excellent, Thanks to those who responded. The problem I had had, and you
all pointed it out in a round about way, was to call the date command in the
cp command. I see it is now simply called in the `` marks, with the switches
betwixt a couple single quote marks. I'll assume the '<command>` can be used
in this fashion for the most part with most commands of this sort, much like
the | or piping of commands is.

Pardon my mnemonics out loud.

Yes, I do need to work on this, are there any PLUG meetings that will discuss
shell scripting and tools like these? I'll bet everyone could learn something
about scripting from someone else. Or is there a GREAT online tutorial or
resource for this that I missed.... scratch that, I know there is, anyone
know where it is?

anthony

ps. Kevin, the > vi file command was not lost on me ;-)

On Wednesday 04 February 2004 12:33 am, Austin Godber wrote:
> Kevin Brown wrote:
> > cp file file_`date +%Y%m%d`.old
> > vi file
>
> If you find:
> date +%Y%m%d
> to be too strangelooking you can use:
> date -I
>
> the difference is 20040204 vs 2004-02-04
>
> date -I == date +%Y-%m-%d
>
> Austin
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss