改变shell read命令的隔符

orgIFS=IFS
IFS="."
ls */.fst/.txt | while read var1 var2 var3
do
IFS=$orgIFS
fstcompile --isymbols=${path1}isymtab.txt --osymbols=${path1}osymtab.txt ${var1}/.fst/.txt ${var1}/.fst
fstdraw --isymbols=${path1}isymtab.txt --osymbols=${path1}osymtab.txt ${var1}.fst | gbk2unicode >${var1}.dot
IFS="."

done


你可能感兴趣的:(shell,read,分隔符)