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` -- with kind regards, Martin Lasarsch, Core Services SUSE LINUX Products GmbH, Maxfeldstr. 5 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) martin.lasarsch@suse.de - http://www.opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org