From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 10:33:23 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C36C106564A for ; Fri, 16 Jan 2009 10:33:23 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 2B2A88FC1E for ; Fri, 16 Jan 2009 10:33:22 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1LNm0u-0006Ch-E3 for freebsd-questions@freebsd.org; Fri, 16 Jan 2009 10:33:21 +0000 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1LNm0o-0002uP-Ev for freebsd-questions@freebsd.org; Fri, 16 Jan 2009 10:33:14 +0000 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id n0GAXEZf069103 for ; Fri, 16 Jan 2009 10:33:14 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3/Submit) id n0GAXD9r069102 for freebsd-questions@freebsd.org; Fri, 16 Jan 2009 10:33:13 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 16 Jan 2009 10:33:13 +0000 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20090116103313.GA40221@mech-cluster238.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.4 X-Spam-Level: - Subject: can't work with a file starting with dash space '- ' ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 10:33:23 -0000 By mistake I saved an email attachmed as it was called, probably from MS world: - Reviewer Comments - FFEMS - Closure paper.pdf Now I cannot delete, or rename it. % cp -\ Reviewer\ Comments\ -\ FFEMS\ -\ Closure\ paper.pdf z cp: illegal option -- usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory % rm -\ Reviewer\ Comments\ -\ FFEMS\ -\ Closure\ paper.pdf rm: illegal option -- usage: rm [-f | -i] [-dIPRrvW] file ... unlink file % I can view it with xpdf, but that's about all. I tried wildcards and quotes, sh, csh, bash, tcsh and superuser but no luck. How can I delete or rename this file? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423