Martin Krischik $WikiTagline
 

ff for your /usr/share/zsh/site-functions

search for a files inside a directory. File and Directory are given as one parameter.

 function ff()
    {
    local in_Path=$(dirname  "${1}");
    local in_File=$(basename "${1}");

    find "${in_Path}" -iname "${in_File}" 2>/dev/null;
    return;
    }

ffind for your /usr/share/zsh/site-functions

search for text in files inside a directory. Parameter 1 is the text parameter 2 is file and directory.

 function ffind()
    {
    local in_Text="${1}";
    local in_Path=$(dirname  "${2}");
    local in_File=$(basename "${2}");

    find "${in_Path}" -iname "${in_File}" | xargs grep -l "${in_Text}" 2>/dev/null;
    return;
    }