#!/usr/bin/env bash # Remove bom from file. awk '{if(NR==1)sub(/^\xef\xbb\xbf/,"");print}' $1