Re: [opensuse] bash pipe
- From: "Brian K. White" <brian@xxxxxxxxx>
- Date: Tue, 30 Sep 2008 03:19:13 -0400
----- Original Message -----
From: "David Bolt" <bcrafhfr@xxxxxxxxxx>
To: <opensuse@xxxxxxxxxxxx>
Sent: Monday, September 29, 2008 10:02 AM
Subject: Re: [opensuse] bash pipe
On Mon, 29 Sep 2008, drek wrote:-
Hello,
In a script I want to know in which directory I am, but I don't want to
know the whole path.
This should do:
WHICHEVER_VARIABLE_NAME_YOU_WANT=${PWD##*/}
Ahh finally!
Phew I was wondering if _anyone_ was going to say anything other
than the unnecessary process fork of running basename.
--
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
- Follow-Ups:
- Re: [opensuse] bash pipe
- From: Randall R Schulz
- Re: [opensuse] bash pipe
- References:
- [opensuse] bash pipe
- From: drek
- Re: [opensuse] bash pipe
- From: David Bolt
- [opensuse] bash pipe
- Prev by Date: Re: [opensuse] 2 TB RAID5 limit
- Next by Date: Re: [opensuse] wine at 64-bit suse?
- Previous by thread: Re: [opensuse] bash pipe
- Next by thread: Re: [opensuse] bash pipe
- Index(es):
Relevant Pages
|