RE: output > date.txt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ls -al > "`date`.txt"



-----Original Message-----
From:	redhat-list-bounces@xxxxxxxxxx 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@xxxxxxxxx>

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




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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux