|
From: | Emanuel Berg |
Subject: | Re: How to do a massive unfill paragraph operation over several hundred files? |
Date: | Sat, 29 Sep 2018 13:32:48 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Gerald Wildgruber wrote: > MY QUESTION: What would be a good way to > AUTOMATE such an unfill operation, removing all > line breaks from all paragraphs over a large > number of files? Script to insert a string into files 1, 2, and 3: #! /bin/zsh local script=do-this.el emacs -Q --batch --script $script 1 2 3 Elisp to do it: ;; do-this.el (dolist (f argv) (find-file f) (insert "Sail Ho!") ; do your thing here (save-buffer) ) -- underground experts united http://user.it.uu.se/~embe8573
[Prev in Thread] | Current Thread | [Next in Thread] |