logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Define Function - Create Shell Functions | Online Free DevTools by Hexmos

Define functions with Bash Function. Create and manage reusable shell commands quickly using shell script. Free online tool, no registration required.

function

Define a function. More information: https://www.gnu.org/software/bash/manual/bash.html#Shell-Functions.

  • Define a function with the specified name:

function {{func_name}} { {{echo "Function contents here"}}; }

  • Run a function named func_name:

func_name

  • Define a function without the function keyword:

{{func_name}}() { {{echo "Function contents here"}}; }

  • Display help:

help function

See Also