To find and replace a string in a huge file using the command line with just one line code

sed -i 's/findme/replacewithme/g' file.txt