-- Leo's gemini proxy

-- Connecting to gemini.jorl.fi:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini


stdu 1.0.0 release


I use output redirection and piping quite a bit when I'm using my computer. Oftentimes I just `cat` and redirect the output instead of using `cp` or `dd`. I don't remember when I'd have done `grep [foo-query] [bar-file]`, I always do `cat [bar-file] | grep [foo-query]`. I might end up writing more, but I don't have to remember as much syntax.


What I was missing was some kind of progress bar which for example `dd` can offer. That's why I wrote `stdu` (standing for STDIN data usage, obviously), a program that prints out the amount of data piped to its STDIN. You can find its source on my website:

https://jorl.fi/git/stdu

or you can clone it by doing


git clone "https://jorl.fi/git/stdu.git"

`stdu` is written in C and I'd love to get feedback and suggestions both on the source code and the program and its usability at joel dot kronqvist at iki dot fi. I'm aware that the config parsing is quite a mess, so I will probably write a more elegant system for it at some point. I'm also planning to add an option for output forwarding, maybe like


cat foo | stdu --forward | /dev/sdb1`

because using `stdu` with `tee` is basically useless as `tee` seems to send its output at independent paces to its STDOUT and the specified file.

-- Response ended

-- Page fetched on Sat May 11 16:52:02 2024