for i in .txt; do mv $i ${i%%.}.cnx; done

记录于此