#!/bin/sh # # Removes UTF-8 BOM from a file list on STDIN # Use by piping the output of a findutf8bom script # # Raphaƫl Doursenaud - rdoursenaud@gpcsolutions.fr while read f; do echo "Fixing $f" sed -i '1s/^\xEF\xBB\xBF//' $f done