From owner-freebsd-questions Fri Aug 2 14:47:47 2002 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 F020E37B400 for ; Fri, 2 Aug 2002 14:47:45 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B2A9343E4A for ; Fri, 2 Aug 2002 14:47:44 -0700 (PDT) (envelope-from capm@gmx.net) Received: (qmail 25605 invoked by uid 0); 2 Aug 2002 21:47:43 -0000 Received: from xdsl-195-14-206-186.netcologne.de (HELO capm) (195.14.206.186) by mail.gmx.net (mp020-rz3) with SMTP; 2 Aug 2002 21:47:43 -0000 Message-ID: <001201c23a6e$17e78e60$0200a8c0@capm> From: "Pascal Giannakakis" To: Subject: smart file gobbling: exclude one file from list Date: Fri, 2 Aug 2002 23:46:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, if i do "cp * /destination", all files in the current directory will be copied to /destination. What do i have to type, if i want to expand the '*' to all files, except of one? For example, if i wanted to exclude the file "notme" in the current directory? I know i could hack it with grep, but this fails as all files are on one line. I wonder how you gurus would solve this! :) TIA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message