[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bashing
- To: silug-discuss@silug.org
- Subject: bashing
- From: hbrhodes <hbrhodes@gmail.com>
- Date: Sun, 26 Feb 2006 11:28:28 -0600
- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=q1qvA5TAz4KlYgslpKJwYUK3pz4n81r6NiBlMQbDrREEhVMTB+KuK7u/LO3z2HUOzckxDF6ehU5ZAgPZB0FF0Muvnxo8xMXjpWp+FV3XF5cAgozceKTEYJ8i3hQFxYaD1+SbqChNab8wdAdbwQJYwzLNiYKOp4k/AieoKKW9ruo=
- Organization: Southern Illinois Linux Users Group
- Reply-To: silug-discuss@silug.org
- Sender: silug-discuss-owner@silug.org
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060202 Fedora/1.7.12-1.5.2
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.