Andy's Cafe

Adding Newlines to One Line Files

Last updated :

Problem

I have a directory of files and need to find all of the one liners and add newlines to them

Solution

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

Reply via email

Tags

#emacs