Friday, January 26, 2018

Windows clip command

The Windows command-line clip command is really great. You can pipe text into it, and it puts it into the clipboard. I write most of my blog posts in a text editor, run them through a bash script that does

pandoc -S $1 | perl -pe 's|(.*?)|$1|g' | iconv -f utf-8 -t utf-16le | clip
and then just paste them right into blogger. Sometimes when I want to write an email to all my students, I run a python script that extracts the emails from the csv file on our class list server, pipe the output into clip, and then just paste it into my email.

No comments: