Bluesky Thread

numcat: read a file, and prepend line numbers

View original thread
numcat: read a file, and prepend line numbers

Why? Because LLMs can reference line numbers easily. Great if you're trying to spot something in a bigger file

$ pbpaste | numcat | pbcopy

or

$ cat foo.txt | numcat | pbcopy

gist.github.com/tkellogg/f4e...
gist.github.com
numcat: Prepent line numbers
numcat: Prepent line numbers. GitHub Gist: instantly share code, notes, and snippets.
25
probably a good time to mention that you can pipe into ollama:

$ pbpaste | numcat | ollama run llama3.1 "what went wrong?"
6 1
25 likes 0 reposts

More like this

×