#!/bin/bash for i in $( ls ); do rename 's/ //' $i done