Problem
I have a directory of files and need to find all of the one liners and add newlines to them
Solution
- mark every file in dired (not sure if there is a fast way to do this) by holding
m
from the top !
(dired-do-shell-command
)wc -l
M-x sort-lines
ine the shell output buffer
The sorting was just useful because it grouped the one liners at the top of the buffer. But then I could cross reference names and open files from dired and make the change I wanted to make.
I tried to do this with consult-find
because of this answer
https://unix.stackexchange.com/a/170276, but it didn’t jump me to the file I
needed to change. So there’s no added benefit to having the find
do an -exec