gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Example: renaming files and files references within


From: Gergely Nagy
Subject: Re: [Gnu-arch-users] Example: renaming files and files references within arch
Date: Thu, 09 Sep 2004 17:26:10 +0200

> Any suggestions for easier ways to accomplish these steps (especially the 
> first?

for f in $(find html_root -name '*.tmpl'); do
        tla mv "$f" $(echo "$f" | sed -e "s,\.tmpl$,.html,");
done

Or, when using taglines, and you have the rename(1) utility around:

rename "s/\.tmpl$/.html/" $(find html_root -name '*.tmpl')

-- 
Gergely Nagy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]