the whole lines instead of space separated fields use the below
at the begining and at the end of your shell script:
export OFS="$IFS" ; export IFS=$'\n';
[ SHELL SCRIPT HERE THAT WORKS on WHOLE LINES ]
export IFS="$OFS"
export OFS="$IFS" ; export IFS=$'\n';
[ SHELL SCRIPT HERE THAT WORKS on WHOLE LINES ]
export IFS="$OFS"
cat *.map.xml | grep include |
sed -e 's/^.*file\s*=\"//' |
sed -e 's/\".*$//' |
sort | uniq -d
for i in `cat oneliner.txt`
do grep $i *.map.xml > /dev/null
if [ $? -eq 1 ]
then
echo $i
fi
done