no such file or directory using "-" character

Joachim Backes joachim.backes at rhrk.uni-kl.de
Sun Aug 3 07:29:29 UTC 2014


On 08/03/2014 09:26 AM, Joachim Backes wrote:
> On 08/03/2014 09:01 AM, Angelo Moreschini wrote:
>> Hi
>>
>> I need to go inside a directory named <notebook-source>; 
>> but I am not able to do it.
>>
>> Using the command cd /.../notebook-source  
>> I get the output : 
>> "no such file or directory"
>> -----------
>> I tried to go around to the problem using the command ls :
>>
>> if I use the command : 
>> <ls notebook* > (using the wildchar *)
>> then I get the correct output:
>> "notebook-source".
> 
> Probably, "notebook-source" contains ome or more space chars at the end,
> and you do not see then.

Sorry, I meant:

Try this: ls -d notebook* >x and then check the file "x" for space chars,
or use the tr command: ls -d notebook*|tr " " "<some no space char>"


Joachim Backes

-- 

Fedora release 20 (Heisenbug)
Kernel-3.15.8-200.fc20.x86_64


Joachim Backes <joachim.backes at rhrk.uni-kl.de>
http://www-user.rhrk.uni-kl.de/~backes


More information about the users mailing list