On Friday 08 October 2010 09:00:03 slug-requ...@slug.org.au wrote: > > perhaps most > > importantly, (l)user has been attacked with seriously large clue stick > > and told to not do it again! > > Why? The only "illegal" characters in file names on a UNIX or Linux file > system (including ext2 and ext3) are the forward slash (because it is the > path separator) and NUL (because it is the string terminator). Everything > else is perfectly legitimate to use (including having a file named "-rf > *", which would only catch a very careless remover of the file)
The nice thing with vi is that it is predictable and consistant ie you want the date in a document and have never done that before so yo do :r !date (read the output of the command 'date', and you can predict that) Likewise -- as an argument says no further options so mv -- -fr zot renames the file '-fr' to zot cp -- zot -fr copies zot to -fr rm -- -fr zot removes file '-fr' and file 'zot' rm -fr zot will recursivly remove directory zot even if the files in it are read only! so do beware James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html