perl -pe "s/\bperl\b/Perl/g;" textfile.txt >temptext.txt