From owner-freebsd-questions Fri Jul 23 7: 1:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from garfield.bmk.com.au (bmkind.lnk.telstra.net [139.130.51.118]) by hub.freebsd.org (Postfix) with ESMTP id C886015738 for ; Fri, 23 Jul 1999 07:01:36 -0700 (PDT) (envelope-from brendan@bmk.com.au) Received: from localhost (brendan@localhost) by garfield.bmk.com.au (8.8.7/8.8.7) with SMTP id AAA13292 for ; Sat, 24 Jul 1999 00:01:26 +1000 (EST) (envelope-from brendan@bmk.com.au) Date: Sat, 24 Jul 1999 00:01:25 +1000 (EST) From: Brendan Kosowski X-Sender: brendan@garfield To: FreeBSD Questions Subject: bash question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is there a special character I can use in filenames to tell bash to automatically increment a number within the filename when redirecting data to the file. eg. The first time I type "date > [filename]" I want bash to place the date in a filename called date.001 Now, because date.001 already exists, the next time I type the same command it should produce date.002, and so on.... Can this be done ??? Thanks... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message