Timeline for sed on cygwin can only replace one character?
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 21, 2017 at 1:05 | comment | added | NobleUplift | I use ~ since it's just about the only character that I can guarantee isn't in these XML files. Since they're Windows tasks, they store commands which can be ; delimited, so I wouldn't be able to do a find/replace on those. | |
| Mar 21, 2017 at 1:04 | vote | accept | NobleUplift | ||
| Mar 21, 2017 at 0:51 | comment | added | mdpc | Have you thought of using a different string delimiter character? Like maybe semi-colon (;)? | |
| Mar 21, 2017 at 0:36 | history | edited | NobleUplift | CC BY-SA 3.0 | Change to actual tags for readability |
| Mar 20, 2017 at 23:48 | history | edited | Gilles 'SO- stop being evil' | edited tags | |
| Mar 20, 2017 at 17:16 | answer | added | Stéphane Chazelas | timeline score: 10 | |
| Mar 20, 2017 at 16:55 | comment | added | Stéphane Chazelas | I'd bet it's a UTF-16 file. Try iconv -f utf-16 < file.xml | sed... | |
| Mar 20, 2017 at 16:54 | comment | added | Kusalananda♦ | I can not reproduce this in Cygwin. | |
| Mar 20, 2017 at 16:53 | comment | added | Stéphane Chazelas | Can't reproduce, even when running from powershell.exe. May the file contain some hidden character? Try sed -n l < MyFile.xml to reveal them. | |
| Mar 20, 2017 at 16:46 | answer | added | user218374 | timeline score: 2 | |
| Mar 20, 2017 at 16:27 | history | asked | NobleUplift | CC BY-SA 3.0 |