How to list defined functions in bash.

메모 2012.01.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

Trackbacks 0 : Comments 0

Write a comment