blob: 16010f918c51de11f8a6f52cbb5e1d12a2f093d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /bin/sh
# rename: rename files accoring to expression.
# Copyright 1997 Olaf Weber <infovore@xs4all.nl>
# Public Domain.
expr="$1"
shift
for i
do
j=`echo "$i" | sed "$expr"`
mv $i $j
done
|