Re: script problem
- From: "Jerry Queirolo" <jerry@xxxxxxxxxxxx>
- Date: Thu, 13 Dec 2007 10:56:34 -0800
I have a backup script that I wrote. In it I have a variable that
has listings of directories to back up. Because of some of the sizes of the
directories, and for other reasons, they now want me to break them where I
back them up into multiple files with the name of the directory instead of
all in one file. It would be simple except that I can't find how to get
just the final directory name for each directory.
Example:
DIRSTOBACKUP= "/usr/local/bin
/etc
/home/steve
/usr/local/src"
If you just want your results to end up as bin.tar.gz, etc.tar.gz, steve.tar.gz etc for your example below, can't you just use basename ?
-jq
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- RE: script problem
- From: Steven Buehler
- RE: script problem
- References:
- script problem
- From: Steven Buehler
- script problem
- Prev by Date: Re: script problem
- Next by Date: Re: dhcp problem
- Previous by thread: RE: script problem
- Next by thread: RE: script problem
- Index(es):