cheat-sheet icon indicating copy to clipboard operation
cheat-sheet copied to clipboard

collection of cheat sheets

Other cheat sheets:

useful tools:

graphicals

tools

regular expressions regexp

sed escape, sed online escape

online coding

search function

function cheat-grep(){
    if [[ $1 == "" ]]; then
        echo "nothing to search"
        return;
    fi

    search_line=""
    for each_input_arg in "$@"; do
        if [[ $search_line == "" ]]; then
            search_line=$each_input_arg
        else
            search_line=$search_line".*"$each_input_arg
        fi
    done

    grep -r $search_line -i -A 2 $HOME_PROJECTS/cheat-sheet/*.md $HOME_PROJECTS/bash-example/*
}