blob: a3f02c825625eadccb5dc47c5b4975f81b71363b [file] [log] [blame]
#!/bin/bash
#*******************************************************************************
# Copyright (c) 2013, 2018 Willink Transformations, University of York and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v20.html
#
# Contributors:
# Adolfo Sanchez-Barbudo Herrera (Univerisity of York) - Initial API and implementation
#*******************************************************************************
if [ $# -ne 1 ]
then
echo "usage example: ./renameZips.sh RC1"
exit;
fi
for i in *.zip
do
newName=${i/$1/}
echo "Renaming $i to $newName"
mv "$i" "$newName"
done