Fun at the Unix Terminal
21–30 of 56 posts
Re: Fun at the Unix Terminal
#22 $ fortune > my_fortune.txt
$ say -f my_fortune.txt
One could use the underrated (bashism) process substitution: $ say -f
Which works wonders for e.g diff'ing live: $ diff Re: Fun at the Unix Terminal
#23Does anyone have a place/site for browsing through new/popular utilities? I've been on Ubuntu for the last year and I love it, but reading this I just realised I don't have anywhere to browse or find things like this.
Re: Fun at the Unix Terminal
#24 alias rot13='tr a-zA-Z n-za-mN-ZA-M'
alias pbr13='pbpaste | rot13; echo'
(echo adds a newline to play well with bash; on linux I use xsel instead of pbpaste.)Re: Fun at the Unix Terminal
#25Re: Fun at the Unix Terminal
#26Instead of: $ fortune > my_fortune.txt $ say -f my_fortune.txt One could use the underrated (bashism) process substitution: $ say -f Which works wonders for e.g diff'ing live: $ diff
Just use
$ say $(fortune)
or $ fortune | say -f-
For bonus coolness, add "-i" (it prints the lines and highlights the current word during reading).Re: Fun at the Unix Terminal
#27Instead of: $ fortune > my_fortune.txt $ say -f my_fortune.txt One could use the underrated (bashism) process substitution: $ say -f Which works wonders for e.g diff'ing live: $ diff
Why would you even bother with that when `say` can take a string or read from stdin? Just use $ say $(fortune) or $ fortune | say -f- For bonus coolness, add "-i" (it prints the lines and highlights the current word during reading).
Re: Fun at the Unix Terminal
#28Does anyone have a place/site for browsing through new/popular utilities? I've been on Ubuntu for the last year and I love it, but reading this I just realised I don't have anywhere to browse or find things like this.
[0] http://packages.ubuntu.com/zesty/newpkg?mode=byage
[1] http://packages.ubuntu.com/zesty/games/
[2] http://packages.ubuntu.com/zesty/misc/