On Tue, Oct 05, 1999 at 03:01:42PM +, Brian J. Stults wrote:
> Could someone give me a sample script (perhaps bash or sed) to change a
> group of filenames from their original name to the same name preceeded
> by an exclamation point.
>
for i in *; do mv $i \!$i; done
-Lex
pgpV1HB2FZu2D.p
*- On 5 Oct, Brian Servis wrote about "Re: auto-change filenames"
> *- On 5 Oct, Brian J. Stults wrote about "auto-change filenames"
>> Could someone give me a sample script (perhaps bash or sed) to change a
>> group of filenames from their original name
*- On 5 Oct, Brian J. Stults wrote about "auto-change filenames"
> Could someone give me a sample script (perhaps bash or sed) to change a
> group of filenames from their original name to the same name preceeded
> by an exclamation point. For example, changing the followi
Could someone give me a sample script (perhaps bash or sed) to change a
group of filenames from their original name to the same name preceeded
by an exclamation point. For example, changing the following filenames
from:
test1.cnm
test2.cnm
to
!test1.cnm
!test2.cnm
Thanks!
--
Brian J. Stult
4 matches
Mail list logo