Can use perl perl -pe 's/\b(\d+\.)?\d+\b/$&*100/ge' file