Search and Replace plain text file

Hi there,

After searching and going through results, this thread-

made me think I'm doing it right but not getting the result. Let's hope I'm wrong somehow.

I'm trying to Search and Replace a string of text in a plain .txt file. Actually a whole folder of them, but in my troubleshooting so far I've narrowed it down that even trying to do this once on a selected file isn't firing right somehow.

Any ideas would be greatly appreciated!

That's odd. This works for me ↓

Search and replace.kmmacros (1.7 KB)

Macro screenshot (click to expand/collapse)

Can you double check that there's no whitespace in the for line before or after your > character?

Also...why is your gear icon yellow? Mine's not that color even in dark mode... the only time I recall seeing icons turn yellow is if there's a potential error with the configuration. 🀷🏻

1 Like

You haven't provided a file path...

I thought that too initially but when I looked closer I think he crossed it out in the image, probably for privacy.

The file path in the action name made me do a double take.

1 Like

lol thank you for catching that– Let me change that before I do anything else

This was it– There was a blank line hidden in the for line. Thank you!

2 Likes