11
General Software Discussion / Re: macro to edit a .txt file?
« on: September 29, 2015, 06:48 PM »Well, I didn't say sed was easy ;DI clicked on 'Select', and copy & paste highlighted string into top window of SedTester, then pasted sample text in which each line is consecutively numbered into first large window.
You'd get the desired result by using this command-line:Code: Text [Select]Or optionally add the -i parameter and remove the '>output-file' part to do a destructive, in-place, replacement in multiple input-files but not keeping the original file(s).
sed -r -e 's/[0-9"]//g' input-file >output-file-Ath (September 29, 2015, 10:17 AM)
Second large window says:
sed: -e expression #1, char 26: Unterminated 's' command
Error 1
I tried individually checking each check box, but no success yet.
Tnx. Over to you?