logoalt Hacker News

rubyfanyesterday at 7:20 PM4 repliesview on HN

I haven’t looked under the hood here but to make simple text replacement via command line is an LLM even required? A human driven command line tool to do basic substitution on batches of files reliably would be amazing.


Replies

BorisMelnikyesterday at 7:27 PM

there is a python library for docx handling. my thinking was the use case for this was for larger scale automations / document processing.

kirillklimukyesterday at 9:20 PM

Not really - if you wanna do a text replacement you can extract it yourself and do some work (or just use this CLI). The library is designed for longer workloads.

asdffyesterday at 8:44 PM

sed, awk. docx is just zipped xml.

cyanydeezyesterday at 9:00 PM

you've never dealt with ooxml.

show 1 reply