29 Sep
2008
29 Sep
'08
13:15
2008/9/29 drek <drek@drek.nl>:
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....
Anyone with an explanation?
Thanks, André
basename expects an argument, use "basename $(pwd)" Regards, Ciro N�����r��y隊Z)z{.�ﮞ˛���m�)z{.��+�Z+i�b�*'jW(�f�vǦj)h���Ǿ��i�������