Re: [SLUG] mass renaming?

From: Levi Bard (taktaktaktaktaktaktaktaktaktak@gmail.com)
Date: Wed Oct 13 2004 - 19:56:29 EDT


#!/bin/sh
# Usage: ./thisscript.sh fax1 fax2 fax3 ...
# Renames fax.* to fax0000.*
#

for i in "$@"
do
    NEWNAME=`echo "$i" | sed 's/fax/fax0000/'`
    echo "Renaming $i to ${NEWNAME}"
    mv -i "$i" "${NEWNAME}"
done
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:42:41 EDT