From owner-freebsd-questions@FreeBSD.ORG Sat Sep 17 23:27:52 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0959916A41F for ; Sat, 17 Sep 2005 23:27:52 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7332443D46 for ; Sat, 17 Sep 2005 23:27:49 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.1/8.13.1) with ESMTP id j8HNRm9v077018 for ; Sat, 17 Sep 2005 16:27:48 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.1/8.13.1/Submit) id j8HNRld7077017 for freebsd-questions@FreeBSD.ORG; Sat, 17 Sep 2005 16:27:47 -0700 (PDT) (envelope-from kline) Date: Sat, 17 Sep 2005 16:27:47 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20050917232747.GA76966@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19 years of service to the Unix community Cc: Subject: how to rename a file with "!", "?", and other strange chars? 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: Sat, 17 Sep 2005 23:27:52 -0000 I scarfed up a slew of php files that are around 100 bytes in strlen and with "\ " and other non-shell-friendly bytes. Is there a way to use perl to chop off the first N bytes? For example, a file many be named 00001\ 00002xyz\?00003=Test.php. What's the most logical way to perl this file to "Test.php? gary -- Gary Kline kline@thought.org www.thought.org Public service Unix