#!/bin/sh

for f in *.jpg; do
  mv "$f" `echo $f | sed s/\ /_/g`
done
