New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
notepad++
Search and Replace
Take a look at search type - its "Extended"
You can change it in each open file or in all files located in some directory on your hard drive.
Thank you so much!
I fired up one of my Windows VMs installed Notepad++ and got it done in 2 seconds.
ls | xargs -i echo "remote-cert-tls server \n auth-nocache" >> {}
Maybe?
Bascially, for each result in ls, (or dir) will be subject to:
echo "remote-cert-tls server \n auth-nocache" >> filename.extension
Note: This assumes that persist-tun is at the bottom, as this appends the above lines to the end of the file.
No problem, you just owe me a beer ;-)
The more scriptable way is diff/patch. I just did this to update the encoding of a bunch of XML files: