http://qs1969.pair.com?node_id=515366


in reply to Re: What one-liners do people actually use?
in thread What one-liners do people actually use?

You didn't need Perl for that:
for %q in (*.mas) do ren %q %~nq.html

Replies are listed 'Best First'.
Re^3: What one-liners do people actually use?
by Kanji (Parson) on Dec 08, 2005 at 20:37 UTC
    ren *.mas *.html

        --k.


      duh! silly me! I've been doing
      for %q in (TESTA.*) do copy %q TESTB%~xq
      a lot lately, so I wasn't thinking straight.