Index
Subject
: Re: LUG: Using sed to mass rename files
From
: Edward Anderson <nilbus@nilbus.[redacted]>
Date
: Wed, 03 Mar 2010 11:27:20 -0500
Parent
FYI, you can also do this using bash with no external commands:
for file in F0000*; do mv -v "$file" "${file/#F0000/F000}"; done
The # in ${file/#F0000/F000} means replace the pattern that starts at
beginning of string, like a ^ in standard regex.
On Wed, Mar 3, 2010 at 10:12 AM, Daniel Underwood
<daniel.underwood@ncsu.[redacted]> wrote:
> Ahh, I see. That's interesting. Thanks for the explanation--very
> informative.
> --
> Daniel Underwood
> North Carolina State University
> Graduate Student - Operations Research
> email: daniel.underwood@ncsu.[redacted]
> phone: XXX.302.3291
> web: http://www4.ncsu.edu/~djunderw/
>
>