I've also had a bit of fun doing various powershell one-liners from the command line for stuff I just need to do quickly and probably don't need again. For example:
the above executes powershell and runs a command that reads in a file of servers' dns names and then writes to the screen the list without the domain part of their name.
Powershell -command $allservers = get-content allservers.txt; $allservers -Replace ‘\.corp\.domain\.com’, ‘’
Also, I often use TextPad (www.textpad.org) to use a more complicated RegEx against a file.