Created
February 26, 2025 09:28
-
-
Save santaklouse/5edef74d540256b8e7b33194429ce804 to your computer and use it in GitHub Desktop.
quick cheatsheet in terminal (rtfm - Read The Fucking Manual)
This file contains 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 characters
#!/usr/bin/env bash | |
# get examples of using find command: | |
# $ rtfm find | |
function rtfm() { | |
old="$IFS" | |
IFS='+' | |
echo -n "Search manuals for: '$*'" | |
query="https://cheat.sh/$*" | |
echo " // ($query) ..." | |
echo "$str" | |
IFS=$old | |
curl "$query" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment