About 861,000 results
Open links in new tab
  1. Using functions within a shell script - The Shell Scripting ...

    One often-overlooked feature of Bourne shell script programming is that you can easily write functions for use within your script. This is generally done in one of two ways; with a simple script, the function …

  2. Functions in Shell Scripting - GeeksforGeeks

    Nov 18, 2025 · A function is a reusable block of code that performs a specific task. Using them is the key to writing scripts that are clean, easy to read, and simple to maintain.

  3. Bash Functions Explained (Variables, Arguments, Return)

    Dec 15, 2025 · Learn how to define and use Bash functions to group commands, reuse logic, and organize shell scripts more effectively.

  4. Bash Functions - Linuxize

    Dec 16, 2025 · In this guide, we will cover the basics of Bash functions and show you how to use them in your shell scripts. There are two different ways to define a function in Bash. The first format starts …

  5. Shell Functions (Bash Reference Manual)

    Shell functions are a way to group commands for later execution using a single name for the group. They are executed just like a "regular" simple command. When the name of a shell function is used …

  6. Unix / Linux - Shell Functions - Online Tutorials Library

    Shell functions are similar to subroutines, procedures, and functions in other programming languages. To declare a function, simply use the following syntax −. list of commands. The name of your function …

  7. Bash Functions - W3Schools

    In Bash, execute (or call) a function by using its name. Functions can be called multiple times, which helps in reusing code: Functions can accept arguments, return values, and use local variables. …