4 ms·
Congrats on self-publishing your books and thanks for the details on the book generation. If you didn't already know, I would also suggest to check out Gumroad/
by asicsp 6y ago
Congrats on self-publishing your books and thanks for the details on the book generation. If you didn't already know, I would also suggest to check out Gumroad/Leanpub for selling ebook versions.
>No comments about my sed magic please
The commands are fine. Had a doubt if you are using GNU sed or some other flavor since you mention MacOS a few paras earlier. If you are not using GNU implementation, `-i -e` will likely create backup files with `-e` as extension. See [0] for details.
For the Perl command, `-0` option will use ASCII NUL as the record separator. To slurp entire file, pass a value 400 or greater, `-0777` is idiomatically used. If your input doesn't have NUL characters, which is likely the case here, this distinction doesn't play a role.
[0] https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux https://stackoverflow.com/questions/5694228/sed-in-place-fla...