12/20/2006

遇到几个 shell 问题

langpack=`cat /etc/sysconfig/i18n|grep "^LANG="|sed 's/_.*//'|sed 's/.*\"//'`
if [ $langpack == "zh" ]; then
echo "yes"
else
echo "no"
fi

cp %{_libdir}/firefox/defaults/profile/prefs.js `find $HOME/.mozilla/firefox/ -name prefs.js 2>/dev/null` --reply=yes &>/dev/null

cp test.js $( echo $( find $HOME/.mozilla/firefox/ -name xpti.dat )|cut -d '/' -f 1-5 )

没有评论: