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

bashing



if i can tell the program TAR to put the date into something by typing 
date '%Y %m%d'.tar, can i do the same with bash?  for instance if i make 
a sh that makes a several tar files, i should be able to tell bash to 
pipe (i think) a command that will keep the tar names without me having 
to type them all in.

tar cZf  date '%Y %m%d'_whatever.tar /home/user1

get 2006 0224 whatever.tar
get 2006 0225 whatever.tar
get 2006 0226 whatever.tar

and i want to make these files 'gz' without telling gzip to compress 
each one individually or saying gzip -9 *.tar.  i was looking through 
www.tldp.org, but the bash intro thing wasn't sinking in.

has anyone had experience with telling bash to rename something, and how 
is it done?

-- 

bentley rhodes		| Southeast Missouri University
hbrhodes@semo.edu	| College of Nursing, Spring 2008.
			| http://www2.semo.edu/nursing/


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.