#!/bin/bash for file in `find . -type f -iname "*.shtml"` ; do sed -i -e "s,\n,g" $file done