[ale] Newb question

Adrin haswes at mindspring.com
Wed Jan 23 16:17:42 EST 2002


I thought you could do it with mv.   But a last it didn't work.   I have
seen back up scripts. You could hack one from there.

Adrin


-----Original Message-----
From: Ty Connell [mailto:ty.connell at outweb.com]
To: ale at ale.org
Sent: Wednesday, January 23, 2002 4:06 PM
To: 'ale at ale.org'
Subject: [ale] Newb question

I would like to rename all the files in a directory from <file> to
<file>.bak.  I know there is an easy way to do it, but I don't know it - any
help?

My hacky solution was to use this:
perl -pi.bak -e '//'
which gives me backups of all the files.  Then I just blow away the real
ones I don't want to use.

There must be a more elegant solution that my simple mind just does not
know.

-ty

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list