One of the most useful utilities I always use on my Windows system is `pbpaste`.
As [I wrote in the last post](https://sukhbinder.wordpress.com/2024/07/22/exploring-the-world-of-local-large-language-models/), I use the `llm` package to interact with my language models, both locally and remotely.
Pasting a big chunk of content to them in the CLI always needs the help of `pbpaste`. This is natively available in Mac OS.
For Windows systems, I created a tiny utility using the standard Python library, which mimics the same.
Happy to report that I found some time last week and pushed it to PyPI. If you want to use it on your Windows system, run:
`pip install pbpaste-win`
Open the command line and you should have
`pbpaste` in the command line.
Screenshot 2024-08-02 at 19.22.26.png
Mac OS offers `pbcopy` for copying output to the clipboard. Windows has a similar utility called `clip`.
For example:
`systeminfo | clip`
This command copies system information into the clipboard, and it can be pasted into any application in Windows using Ctrl+V.
Here's a simple command line i always improves any text copied to the clipboard:
`pbpaste | llm -s "improve this text" | clip`
The clipboard now has the improved version of the text which can be pasted anywhere with control+c