whatprovides/db/renamer

9 lines
102 B
Bash

#!/bin/bash
list=`ls`
for i in $list;
do
#echo $i
real=`echo $i | cut -d'.' -f1`
mv $i $real
done