Re: BASH Shell Scripting Question

2003-06-27 Thread Richard Crawford
Thanks to everyone who replied to this question. I wound up doing it in Perl. ;-) Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye."

Re: BASH Shell Scripting Question

2003-06-27 Thread pnelson
On Fri, 2003-06-27 at 09:43, Richard Crawford wrote: > Greetings, > > I have a shell script which duplicates a file and then renames the > duplicate file; the trick is that the duplicate file needs to have the > same permissions as the original file. For example: > > 1. Open file A.txt > 2.

Re: BASH Shell Scripting Question

2003-06-27 Thread Gordon Messmer
Richard Crawford wrote: ... 5. Give B.txt the same permissions as A.txt I assume that there is some set of variables I can look at to find various attributes of A.txt, so that $APerm = permissions(A.txt) or something, so I can do chmod $APerm B.txt in step 5. From the "setfacl" man page:

Re: BASH Shell Scripting Question

2003-06-27 Thread Bret Hughes
On Fri, 2003-06-27 at 11:43, Richard Crawford wrote: > Greetings, > > I have a shell script which duplicates a file and then renames the > duplicate file; the trick is that the duplicate file needs to have the > same permissions as the original file. For example: > > 1. Open file A.txt > 2.

Re: Bash Shell Scripting Question

2002-10-28 Thread Todd A. Jacobs
On Sat, 26 Oct 2002, MET wrote: > if[ $MANPATH ] ; then It's telling you it can't tokenize the expressions, right? Spacing and quoting are not optional for this construct. And where is the test condition? How about changing all your tests to something like: if [ -n "$MANPATH" ]; then

Re: Bash Shell Scripting Question

2002-10-26 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 26 Oct 2002 16:42:34 -0400, MET wrote: > I'm trying to start using Qt and I'm having problems setting up the > environmental variables so I guess I'm off to a pretty bad start. > Below is what I have included in my /etc/profile minus the defa