[Klug-general] My PFY

J D Freeman klug at quixotic.org.uk
Fri Sep 10 08:27:28 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Sep 10, 2010 at 09:10:54AM +0100, David Halliday wrote:
> couldn't this be managed with the find application. Something along the
> lines of "find all files with "-" in their name and replace it with sed
> acting on the mv command. OK this will probably require going in a script
> but interesting problem.
> 
> My biggest joy with file names was using get_iplayer when there was a show
> containing cover versions of Bob Dylan songs called "...sings Dylan" After
> downloading it I couldn't find it in my file browser until I looked again at
> the programme name and realised that the system had concluded that it was a
> file to be hidden.

The writers of many tools have thought about this. 

Given a file called "-rf" you can remove it with:

rm -- -rf

This works with the majority of command line tools. 

J
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFMievs42M0lILkmGIRAn7ZAJ4gU1YtLhtGQJL0E5kW6vhS82IT3gCfRLAC
KTRfb1jLyD5GkFtU3feg9cs=
=cbr/
-----END PGP SIGNATURE-----



More information about the Kent mailing list