Unix Review > Archives > 2007 > May 2007

UnixReview.com
May 2007

Shell Corner: Littera Delenda Est

Hosted by Ed Schaefer

In March, Sys Admin published our "Miscellaneous Unix Tips: Answering Novice Shell Questions" article. One of our tips described deleting a file named "-". Readers Leon Schutte, Stewart Ravenhall, Andy Bach, Robin Wakefield, and Royce Williams gently took us to task for not mentioning the judicious use of the dash with the rm command. Since John and I regret the oversight, I include the gist of their email:

Using -- indicates no further command options:

rm -- -

Using - explicitly marks the end of command line options so everything after is considered a file:

rm - -

Both commands work our Solaris 9 box. Again, we apologize.

Reader Royce Williams went on to state that his sys admin experience with file names with funny characters has left him scarred. As part of the healing experience, Royce presents Part 1 of "Removal of Files With Unusual Characters in Their Filenames".

Littera Delenda Est: On the Removal of Files with Unusual Characters in Their Filenames, Part One

by Royce Williams

To set the stage for this article, a little bit of history is in order.

Sys Admin Spotlight

CMP DevNet Spotlight

Career Center: Going It Alone
Ever dreamed of leaving that corporate development job for the challenges of independent software consulting? Here are 10 tips to make your solo career path a success.

In the News

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 11.0

Version 11.0 delivers every issue of Sys Admin from 1992 through 2005 and every issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!




MarketPlace

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Discover WinDev 11 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Online Crash Analysis
Automatically capture customer crash data, no debugger required. Support for .NET, C++, OS X, Java.

Wanna see your ad here?