Mailinglist Archive: opensuse (1750 mails)
| < Previous | Next > |
Re: [opensuse] bash pipe
- From: "Brian K. White" <brian@xxxxxxxxx>
- Date: Wed, 1 Oct 2008 02:06:57 -0400
- Message-id: <576FFF81D808471A8FEA612B800731BF@venti>
----- Original Message -----
From: "drek" <drek@xxxxxxx>
To: "opensuse" <opensuse@xxxxxxxxxxxx>
Sent: Tuesday, September 30, 2008 6:57 PM
Subject: Re: [opensuse] bash pipe
On 09/29/2008 04:02 PM, David Bolt wrote:
This should do:
WHICHEVER_VARIABLE_NAME_YOU_WANT=${PWD##*/}
Thanks, but... Can you explain this? For me, it is just a magic guess
with some #'s and a star and slash. How do you come up with this solution?
"man bash" and jump to the section on expansion.
(or ksh, or zsh, or any bourne-type shell)
No one expected you to know what that syntax was in all it's
gory details.
The answer was 3 things. It was the litteral answer to your
specific question. But it was also the the clue or hint that
such syntaxes even existed. And thirdly it was obviously an
example usage.
Pick up the ball and run with it.
Ask others for as much illumination as necessary along the way.
But at least try not to ask others to actually do all of your
thinking for you or to be your personal tutor.
(Asking a person to explain and spoon feed to you something that
you could already read for yourself, isn't that the very
definition of a tutor?)
--
Brian K. White brian@xxxxxxxxx http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |