Mailinglist Archive: opensuse (1750 mails)

< Previous Next >
Re: [opensuse] bash pipe
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 01 Oct 2008 11:32:47 -0500
  • Message-id: <48E3A62F.8070801@xxxxxxxxxxxxxxxxxx>
drek wrote:
On 09/29/2008 04:02 PM, David Bolt wrote:
This should do:
WHICHEVER_VARIABLE_NAME_YOU_WANT=${PWD##*/}
^ ^
And these are curly braces.
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?

André

Andre

See: http://tldp.org/LDP/abs/html/parameter-substitution.html

Halfway down the page....

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >