output > date.txt

Miner, Jonathan W (CSC) (US SSA) jonathan.w.miner at baesystems.com
Mon Feb 6 13:43:47 UTC 2006


ls -al > "`date`.txt"



-----Original Message-----
From:	redhat-list-bounces at redhat.com on behalf of Anze Vidmar
Sent:	Mon 02/06/2006 08:32 AM
To:	Redhat List
Cc:	
Subject:	output > date.txt
hello > *

I need to create a simple bash script that would:

output of "ls -al", redirect to the file name, which would be the output
of the current "date" command.

So let's say the "date" now shows: "Mon Feb  6 14:29:43 CET 2006"
I want the output of "ls -al" to be written in the filename called "Mon
Feb  6 14:29:43 CET 2006.txt"

thanks,
-- 
Anze Vidmar <anzevi at gmail.com>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list







More information about the redhat-list mailing list