Pesky File

Bahman M. b.movaqar at gmail.com
Sun Aug 26 05:25:31 PDT 2007


You're right. 'rm ./P' is much better or using '--' as the end of
arguments. I didn't know that.

Bahman

On 8/26/07, Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Bahman M. wrote:
> > What immediately came to my mind:
> > %  rm `find . -type f -name '-P'`
>
> This is just an excessively prolix way of running a command that
> outputs ./-P and then feeding the result into rm(1).  You can just type:
>
>    rm ./-P
>
> for heaven's sake...
>
>         Cheers,
>
>         Matthew
>
> - --
> Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
>                                                   Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
>                                                   Kent, CT11 9PW
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.4 (FreeBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG0XAT8Mjk52CukIwRCCgmAJ4yonsuo6FvAYT+1ZWLMDiuAH9dugCffMIe
> xPLN/jHG0Qha2ZbsMrmqfNw=
> =Pmxs
> -----END PGP SIGNATURE-----
>


More information about the freebsd-questions mailing list