Activity for user-unknownâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #290386 |
Post edited: added hint for `find` for subdirs |
— | 12 months ago |
Edit | Post #290386 | Initial revision | — | 12 months ago |
Answer | — |
A: How to extract string from file, run filter, and replace in file with new value? ```bash for file in in chapter-.xhtml do sed -ir "12s/\b([A-Z])([A-Z]+)/\1\L\2/g;" "$file" done ``` This `-ir` tells GNU-sed so alter the file in place (-i) and use regexp-extended (-r). For line 12 substitute from word boundary an uppercase letter (1) followed by multiple uppercase l... (more) |
— | 12 months ago |