#!/bin/bash
#simple script to replace " " by "_"

for i in *; do
    mv "$i" "`echo "$i" | tr \  _`"
done