Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] How to cope with strange filenames in bash?
- Date: Tue, 3 Jul 2007 09:28:42 +0200
- From: Michal Hajek <hajek1@example.com>
- Subject: [tlug] How to cope with strange filenames in bash?
- User-agent: Mutt/1.5.13 (2006-08-11)
Hello, a simple question: how do I cope in bash with filenames containing "-" character (i.e. dash) ? In my case, I have downloaded this file: -umai-Doremi--Kenichi-10--B36CAB67-.avi.part1.rar What is so special about it? This: $ ls *.rar ls: invalid option -- - Try `ls --help' for more information. $ $ mv \-umai\-Doremi\-\-Kenichi\-10\-\-B36CAB67\-.avi.part1.rar k1.rar mv: invalid option -- m Try `mv --help' for more information. $ $ mv "-umai-Doremi--Kenichi-10--B36CAB67-.avi.part1.rar" k1.rar mv: invalid option -- m Try `mv --help' for more information. $ $ mv '-umai-Doremi--Kenichi-10--B36CAB67-.avi.part1.rar' k1.rar mv: invalid option -- m Try `mv --help' for more information. $ $ mv `-umai-Doremi--Kenichi-10--B36CAB67-.avi.part1.rar` k1.rar bash: -umai-Doremi--Kenichi-10--B36CAB67-.avi.part1.rar: command not found mv: missing destination file operand after `k1.rar' Try `mv --help' for more information. $ Can someone more experienced please explain this behaviour to me? Best regards Michal
- Follow-Ups:
- Re: [tlug] How to cope with strange filenames in bash?
- From: Josh Glover
- Re: [tlug] How to cope with strange filenames in bash?
- From: Nguyen Vu Hung
- Re: [tlug] How to cope with strange filenames in bash?
- From: Scott Robbins
- Re: [tlug] How to cope with strange filenames in bash?
- From: Scott Robbins
- Re: [tlug] How to cope with strange filenames in bash?
- From: Chris BALUTA
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [Announcement] TLUG Technical Meeting 2007-7-14
- Next by Date: Re: [tlug] How to cope with strange filenames in bash?
- Previous by thread: [tlug] Foot in Mouth
- Next by thread: Re: [tlug] How to cope with strange filenames in bash?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links