Elektrine lite

← Feed

@me_and@tech.lgbt

2026-08-14 12:06 UTC

Ever wanted to use the entirety of stdin as an argument to your Bash command, newlines and special characters and all, and without any Bash expansion/globbing/escaping magic? No? Just me? Anyway, the magic incantation is `"$(</dev/stdin)"`. If you're gonna be typing at your terminal, remember Ctrl+D will end your message. I mostly use it for adding annotations to Taskwarrior tasks, but maybe commit messages with `git commit -m "$(</dev/stdin)"` and similar might also be useful. #bash #bashtricks #taskwarrior #git

Replies (0)

No replies.