Michael J Gruber venit, vidit, dixit 09.06.2010 22:48: > case "$p" in > \<*\>*|\>*\<* ) p="+"$(echo "$p"|grep ">"|wc -l)"-"$(echo > "$p"|grep "<"|wc -l) ;; > *\<* ) p="-"$(echo "$p"|grep "<"|wc -l) ;; > *\>* ) p="+"$(echo "$p"|grep ">"|wc -l) ;; > ...make this grep -Fc ">" etc. rather than grep ">"|wc -l etc. of course. Sorry for the bash-spam :) Michael -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html