Re: change extension

From: Ashley M. Kirchner <ashley_at_pcraft.com_at_hypermail-project.org>
Date: Wed, 7 Oct 1998 13:18:52 -0600 (MDT)
Message-ID: <Pine.LNX.3.96.981007130944.3738A-100000_at_mail.pcraft.com>


On Wed, 7 Oct 1998, Kent Landfield wrote:

> I'll see if I can generate a throwaway script to do the conversion
> but "buyer beware"...

        Stupid single line that I once used to convert a whole bunch of .html files to .shtml - basically one can just change it and use it to rename anything to anything:

for file in *.html ; do mv $file `echo $file | cut -f1 -d.`.shtml ; done
         ^^^^^^^^^- this is assuming                       ^^^^^^- this is
         your current files are .html                    the new extension


	AMK4

  |

  | Row, row, row your bits, gently down the pipe...
  |____________________________________________________________________
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Ashley M. Kirchner <ashley_at_pcraft.com>          .   303.442.6410 x130
  SysAdmin / Websmith                           .     800.441.3873 x130
  Photo Craft Laboratories, Inc.             .        3550 Arapahoe Ave
  http://www.pcraft.com                  .            Boulder, CO 80303
  .................. .  .  .     .
Received on Wed 07 Oct 1998 09:06:57 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:50 PM GMT GMT