[root@ ~]# sed "2 a\ asdsdasdasdadsasda\nsdasdasdsdasdasda " test
#!/bin/bash
testIFS=$IFS
asdsdasdasdadsasda
sdasdasdsdasdasda
aa=#aa:bb:cc
if `expr $aa : '^[#]' > /dev/null`
then
echo "yes"
else
echo "no:"
fi
IFS=$testIFS
#!/bin/bash
testIFS=$IFS
asdsdasdasdadsasda
sdasdasdsdasdasda
aa=#aa:bb:cc
if `expr $aa : '^[#]' > /dev/null`
then
echo "yes"
else
echo "no:"
fi
IFS=$testIFS