📜 ⬆️ ⬇️

Clever thoughts in the console

I looked at the LinSovet command to output smart thoughts to the console, I thought: what if the console is not complete?
Fix


Yuzay:
wget -qO - greatwords.ru/random | grep 'quote-p' | iconv -f UTF-8 -t KOI8-R | sed -ne 's / <[^>] *> // g; s / / / g; p' | fold -sw 160
or
wget -qO - greatwords.ru/random | grep 'quote-p | info-p' | iconv -f UTF-8 -t KOI8-R | sed -ne 's / <[^>] *> // g; s / / / g; p' | fold -sw 160 - displays the line below the author

a. Do not forget to change the encoding after -t, I can have something else on my KOI8-R server basin
b. If necessary, add "http: //" before greatwords.ru if you have a default wget for another protocol configured
c. Add at will to the script or else to the thread and you will be happy, for example: when you connect or when you open a new space in the screen.
')
PS: option tested under frey and linux
ZYZY: Hello and thanks to the LinSoveta !

Source: https://habr.com/ru/post/91289/


All Articles