dolibarr/dev/removeutf8bom.sh
2013-03-01 16:55:07 +01:00

11 lines
235 B
Bash
Executable File

#!/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