I'd like to learn to use python as a command line scripting replacement. I spent some time with python in the past but it's been a while. This seems to be within the scope of it.
I have several files in a folder that I want to do a search-and-replace on, within all of them. I'd like to do it with a python script.
For example, search and replace all instances of "foo
" with "foobar
".