29 Sep
2008
29 Sep
'08
13:52
Martin Lasarsch schreef:
On Monday 29 September 2008 15:11:59 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. I thought it was easy, but I got an errormessage:
drek@laptop:~> pwd | basename basename: missing operand Try `basename --help' for more information.
I expected to get the output from pwd ( /home/drek/ ) piped to basename. So I expected to get "drek" as the final result. But unfortunately....
basename `pwd`
basename $(pwd) for those with bad eye sight. -- Jos van Kan registered Linux user #152704 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org