change file names
Mark Komarinski
mkomarinski at wayga.org
Tue Feb 21 10:28:25 EST 2006
On Tue, Feb 21, 2006 at 10:10:21AM -0500, Jon maddog Hall wrote:
> There are probably easier ways, but for a relatively small number of files,
> and using the bash shell:
>
> for a in 1 2 3 4 ...
> do
> mv exp1eve$a.txt exp2eve$a.txt
> done
>
> were the periods are replaced by however many digits you have.
Or:
for a in `seq 1 50`
do
mv exp1eve$a.txt exp2eve$a.txt
done
If you use seq -w, the numbers will have the same length, padded with 0s
if necessary (01, 02 ... 10, 11 ...)
-Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20060221/c70ca820/attachment.bin
More information about the gnhlug-discuss
mailing list