How to list defined functions in bash.

메모 2012. 1. 28. 00:39

$ declare -f
foo ()
{
    echo 'foo'
}
ps_indexd ()
{
    ps -e -o user,pid,ppid,lstart,stat,command | head -1;
    ps -e -o user,pid,ppid,lstart,stat,command | grep /nvmail/bin/indexd | grep -v grep
}

$ declare -F
declare -f foo
declare -f ps_indexd

: