[NMLUG] Newbie Move/Rename question

Aaron Birenboim nmlug@swcp.com
Sun, 04 Nov 2001 17:44:21 -0700

"Russell D. Miller" wrote:

> for file in *.php; do mv $file ${file}3 ; done

When I read this, I was thinking mv xxxxx.php3 xxxxx.php, which
would be a wee bit tougher.

How might we do the inverse problem.  using sed?

Award for the cleverest (simplest) solution goes to Russ!
Aaron Birenboim | Black holes are where G-d divided
Albuquerque, NM |      by zero.
aaron@boim.com  |
boim.com/~aaron |                      -Steven Wright
To UNSUBSCRIBE send a message to nmlug-request@swcp.com
with only the word unsubscribe in the body.  More
information can be found at www.nmlug.org/info.html