Created
July 17, 2025 17:55
-
-
Save alexey-goloburdin/87a5819d16271dd3c6d736a21c81e843 to your computer and use it in GitHub Desktop.
Revisions
-
alexey-goloburdin created this gist
Jul 17, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ if command -v curl &> /dev/null; then echo "📝 Цитата дня:\n" quote=$(curl -s https://quotes.to.digital/api/random | grep -o '"quote":"[^"]*"' | sed 's/"quote":"//;s/"$//' | sed 's/\\n/ /g' | tr -d '\n\r') echo "«$quote»" | fold -w 120 -s echo "" fi