×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
0

A couple of functions to make your giant collection of functions easier to use.

submitted by registereduser to Linux 5 monthsNov 24, 2023 12:59:45 ago (+1/-1)     (Linux)

listfucntions - Search my functions
function listfunctions() { grep -i "##" /home/user/bin/files/functions; }

readfunction
readfunction(){
echo
grep -i "##" /home/user/bin/files/functions
echo
echo -n "enter function name: "
read -e name
echo
clear
sed -n "/${name}/,/##/p" /home/user/bin/files/functions
}


0 comments block


There doesn't seem to be anything here yet