diff --git a/Sphinx.sh b/Sphinx.sh index 426fe30..651d3bc 100755 --- a/Sphinx.sh +++ b/Sphinx.sh @@ -125,7 +125,11 @@ then `cd config/${HOSTNAME}` for name in `ls` do - a=($(echo $name | nawk -F"." '{$1=$1; print}')) + string=one:two::four + oldIFS=$IFS + IFS=: + a=( $string ) + IFS=$oldIFS done echo ${listIndex[0]};exit `cat files/config.sphinx >> indexeConf/sphinx.conf`