From 4ac7b735ea4b47a213a43c78467c52218383a6ce Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Mon, 24 Oct 2011 12:37:06 +0000 Subject: [PATCH] --- Sphinx.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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`