ayoisaiah / f2

F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely. Written in Go!
https://f2.freshman.tech
MIT License
866 stars 38 forks source link

question: search and replace file contents #36

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

wondering if this tool can do search and replace of segments within a file.

for example i need to do this to markdown files.

ayoisaiah commented 1 year ago

F2 only works for file names not file contents. You can use sed for that

gedw99 commented 1 year ago

thanks will find a golang tool for it as i need cross platform

ayoisaiah commented 1 year ago

I believe https://github.com/chmln/sd is cross platform

gedw99 commented 1 year ago

need it to be golang based so that it can be extended.

will keep looking :)

gedw99 commented 1 year ago

https://github.com/bitfield/script might be enough