[EMAIL PROTECTED] wrote:
>Martin Fluch wrote:
>> A little bit bash programming...
>>
>> for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done
>>
>> Yes, I know, that this is quite cryptic ... but unfortunately I'm to tired
>> to explain it ... I've need some sleep :-)
>>
>> Nevertheless it sho
On 12-Nov-00 22:25 Colin Watson wrote:
> >> for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done
> >
> >for $f in *.html; do mv $f ${f/.html/.htm}; done
> That's what the % flag solves (match only at the end), when put
> immediately after the first / (so ${f/%.html/.htm}). The # flag does the
Michael Abraham Shulman wrote:
> "csj" == csj <[EMAIL PROTECTED]> writes:
>
> csj> I have a bunch of files I want to rename from .html to .htm. Is
> csj> there I way to rename them all at once?
>
> $ mmv '*.html' '#1.htm'
Thanks to everybody that replied. I settled for the program "mmv." It's
r
=?iso-8859-1?Q?R=FCdiger_Kuhlmann?= <[EMAIL PROTECTED]> wrote:
>--[Martin Fluch]--<[EMAIL PROTECTED]>
>> A little bit bash programming...
>> for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done
>
>for $f in *.html; do mv $f ${f/.html/.htm}; done
>
>Requires a not too old bash. Beware of file nam
On Sat, Nov 11, 2000 at 05:18:19AM +0800, [EMAIL PROTECTED] wrote:
> I have a bunch of files I want to rename from .html to .htm. Is there I way to
> rename them all at once?
>
> I remember from my DOS days a command like "ren" (or is it "rename"?) that
> would do the trick. Something like:
>
> r
Hi!
>--[Martin Fluch]--<[EMAIL PROTECTED]>
> A little bit bash programming...
> for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done
for $f in *.html; do mv $f ${f/.html/.htm}; done
Requires a not too old bash. Beware of file names containing .html elsewhere
than at the end...
Yours, Rüdige
Martin Fluch <[EMAIL PROTECTED]> wrote:
>On Sat, 11 Nov 2000 [EMAIL PROTECTED] wrote:
>> I have a bunch of files I want to rename from .html to .htm. Is there
>> I way to rename them all at once?
>
>A little bit bash programming...
>
>for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done
>
>Yes,
[EMAIL PROTECTED] wrote:
>I have a bunch of files I want to rename from .html to .htm. Is there I way to
>rename them all at once?
>
>I remember from my DOS days a command like "ren" (or is it "rename"?) that
>would do the trick. Something like:
>
>ren *.html *.htm
Somebody's already mentioned mmv
"csj" == csj <[EMAIL PROTECTED]> writes:
csj> I have a bunch of files I want to rename from .html to .htm. Is
csj> there I way to rename them all at once?
$ mmv '*.html' '#1.htm'
See mmv(1) for more info. The quotes are necessary, because you want
`mmv' to do the wildcard expansion instead of
On Sat, 11 Nov 2000 [EMAIL PROTECTED] wrote:
> I have a bunch of files I want to rename from .html to .htm. Is there
> I way to rename them all at once?
>
> I remember from my DOS days a command like "ren" (or is it "rename"?)
> that would do the trick. Something like:
>
> ren *.html *.htm
>
>
I have a bunch of files I want to rename from .html to .htm. Is there I way to
rename them all at once?
I remember from my DOS days a command like "ren" (or is it "rename"?) that
would do the trick. Something like:
ren *.html *.htm
What's the Linux equivalent of this trick? mv only renames files
11 matches
Mail list logo