Could someone please help me to find a command line tool that I can use in the Terminal to change a folder with *.tmx files that contain the string:
The string should become:
(Probably it's safe to replace ="en" with ="nl").
Thank you in advance!
We might need more context – what is the pebble embedded in ?
What else is in the string ?
(Signal isn't signal in isolation – only as a difference from a background)
An example can be downloaded here:
The whole enchilada is here:
@ALYB, please create a copy of your folder before attempting any file modifications. Once you've done that, open Terminal and move to the directory that contains the files that you want to modify. Then use the following command:
sed -i '' 's/<tuv xml:lang="en">/<tuv xml:lang="nl">/g' *.tmx
Thank you very much. Because of the size of the files the command took some time, but hey: it worked perfectly.
Not that I'm opposed to command line tools by any means – but keep in mind that this can be done pretty easily with Keyboard Maestro native tools.
Good one, I had no idea about this trick. Make sense if it works pretty well. Thanks!