Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 1999 00:01:25 +1000 (EST)
From:      Brendan Kosowski <brendan@bmk.com.au>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   bash question
Message-ID:  <Pine.BSF.3.96.990723234100.13264B-100000@garfield>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990723234100.13264B-100000>