Re: Pesky File

2007-08-26 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Grant Peel wrote:
 Hi all,
 
 How do I view and delete this file?
 
 -rw-r--r--1 gpeel  wheel  57080 Oct  3  2004 -P

Either call the file ./-P on your command line, or use
'--' to mark the end of command arguments.  Eg:

% touch -- -P
% ls -l -- -P
- -rw-r--r--  1 matthew  wheel  0 Aug 26 13:09 -P
% rm -- -P

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

iD8DBQFG0W3k8Mjk52CukIwRCNIQAJ42/C4ohk8O4JNfSOY/N8VOeAZ7YQCfSXn7
U568mzYq8fiGv7KhAJgEAWQ=
=xvF5
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pesky File

2007-08-26 Thread Bahman M.
What immediately came to my mind:
%  rm `find . -type f -name '-P'`

Bahman

On 8/26/07, Grant Peel [EMAIL PROTECTED] wrote:
 Hi all,

 How do I view and delete this file?

 -rw-r--r--1 gpeel  wheel  57080 Oct  3  2004 -P

 -Grant
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pesky File

2007-08-26 Thread Bahman M.
To view the file:
% cat `find . -type f -name '-P'`

Bahman

On 8/26/07, Bahman M. [EMAIL PROTECTED] wrote:
 What immediately came to my mind:
 %  rm `find . -type f -name '-P'`

 Bahman

 On 8/26/07, Grant Peel [EMAIL PROTECTED] wrote:
  Hi all,
 
  How do I view and delete this file?
 
  -rw-r--r--1 gpeel  wheel  57080 Oct  3  2004 -P
 
  -Grant
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pesky File

2007-08-26 Thread Matthew Seaman
-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-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pesky File

2007-08-26 Thread Bahman M.
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 [EMAIL PROTECTED] 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-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pesky File

2007-08-26 Thread Lowell Gilbert
For the record, both of the answers that have already been posted are
described right in man rm.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]