3 [[ $# < 1 ]] && echo "Usage: $0 files" && exit 1
7 function space_r_space
()
11 while grep -q "[\*_a-zA-Z0-9]${PATTERN}[\*_a-zA-Z0-9]" $FILES; do
12 sed "s/\([\*_a-zA-Z0-9]\)${PATTERN}\([\*_a-zA-Z0-9]\)/\1 ${PATTERN} \2/g" -i $FILES
20 while grep -q "[\*_a-zA-Z0-9]${PATTERN}[\*_a-zA-Z0-9]" $FILES; do
21 sed "s/\([\*_a-zA-Z0-9]\)${PATTERN}\([\*_a-zA-Z0-9]\)/\1${PATTERN} \2/g" -i $FILES