function bash
Shell
#!/bin/bash
#Call a function without arguments
function quit {
exit
}
#Call a function with arguments
function e {
echo $1 #$1 will be set to the first argument given
}
#!/bin/bash
function name() {
echo "something"
}
Also in Shell:
- Title
- how to install enzyme
- Category
- Shell
- Title
- ubuntu copy
- Category
- Shell
- Title
- how to make a .sh file executable
- Category
- Shell
- Title
- randomly choose n rows from a file linux
- Category
- Shell
- Title
- powershell search array
- Category
- Shell
- Title
- install visual studio code raspberry pi
- Category
- Shell
- Title
- vim compare 2 files
- Category
- Shell
- Title
- how to commit a branch in git
- Category
- Shell
- Title
- improve ubuntu 16.04 performance
- Category
- Shell
- Title
- shell set environment variable
- Category
- Shell
- Title
- linux remove folder and all his content
- Category
- Shell
- Title
- shared folder virtualbox ubuntu
- Category
- Shell
- Title
- BDD framework in testcomplete github
- Category
- Shell
- Title
- grep for all .py files containing a word
- Category
- Shell
- Title
- loop from array bash
- Category
- Shell
- Title
- virtualbox kernel driver not installed ubuntu
- Category
- Shell
- Title
- linux get current user
- Category
- Shell
- Title
- firewall in ubuntu 18.04
- Category
- Shell
- Title
- list directories recursively powershell
- Category
- Shell
- Title
- install opencv raspberry pi
- Category
- Shell
- Title
- service dead but pid file exists
- Category
- Shell
- Title
- shell file in linux
- Category
- Shell
- Title
- install .net core sdk on linux
- Category
- Shell
- Title
- github undo last pushed commit
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- check os shell liunx cygwin darwin
- Category
- Shell
- Title
- how to unstage changes in git
- Category
- Shell
- Title
- wheres i3 config file
- Category
- Shell
- Title
- react navigation install
- Category
- Shell
- Title
- a2ensite example.
- Category
- Shell
- Title
- kill port ubuntu
- Category
- Shell
- Title
- gumlet/php-image-resize 1.9.2 requires ext-gd *
- Category
- Shell
- Title
- linux inhalt einer textdatei anzeigen
- Category
- Shell
- Title
- how to stop a web server linux
- Category
- Shell
- Title
- git pull onbly submodule
- Category
- Shell
- Title
- install mariadb-server rpm
- Category
- Shell
- Title
- documentation gitlab ci en francais
- Category
- Shell
- Title
- reset branch on local git
- Category
- Shell
- Title
- install openjdk 8 sdk on ubuntu
- Category
- Shell
- Title
- bash linux scripting laguage
- Category
- Shell
- Title
- bash ls without substring
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- git remove all pdf files
- Category
- Shell
- Title
- git log one line
- Category
- Shell
- Title
- terminal line break mac
- Category
- Shell
- Title
- ubuntu check process on port
- Category
- Shell
- Title
- pod deintegrate
- Category
- Shell
- Title
- bazel instal
- Category
- Shell
- Title
- angular add universal
- Category
- Shell
- Title
- random in mac terminal
- Category
- Shell
- Title
- Why are there two ways to unstage a file in Git?
- Category
- Shell
- Title
- install vuex
- Category
- Shell
- Title
- dockerfile for vuejs
- Category
- Shell
- Title
- git grep across all branches
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- bash generate random number between
- Category
- Shell
- Title
- install node 12 linux terminal w10
- Category
- Shell
- Title
- ubuntu command line replace word in files
- Category
- Shell
- Title
- ubuntu list running services
- Category
- Shell
- Title
- git pull from parent branch
- Category
- Shell
- Title
- @react-navigation/drawer install
- Category
- Shell
- Title
- command to check what version of django is installed
- Category
- Shell
- Title
- kill process on port
- Category
- Shell
- Title
- linux add alias
- Category
- Shell
- Title
- bash display items in array
- Category
- Shell
- Title
- space command line mac
- Category
- Shell
- Title
- install pygame
- Category
- Shell
- Title
- connect to amazon aws linux
- Category
- Shell
- Title
- move a branch back in git
- Category
- Shell
- Title
- gatsby transformer remark
- Category
- Shell
- Title
- get current branch name git
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- check directory size
- Category
- Shell
- Title
- xcuserstate file git
- Category
- Shell
- Title
- command line ip
- Category
- Shell
- Title
- how to install programs in ubuntu using terminal
- Category
- Shell
- Title
- kill all python processes ubuntu
- Category
- Shell
- Title
- windows subsystem for linux optional component is not enabled. please enable it and try again
- Category
- Shell
- Title
- revert to commit git
- Category
- Shell
- Title
- ubuntu remove git from folder
- Category
- Shell
- Title
- linux command to list directory size
- Category
- Shell
- Title
- install opencl headers ubuntu
- Category
- Shell
- Title
- manjaro network driver installed but not working
- Category
- Shell
- Title
- install angular material
- Category
- Shell
- Title
- ubuntu show disk usage
- Category
- Shell
- Title
- linux unzip with password
- Category
- Shell
- Title
- Failed at the [email protected] postinstall script.
- Category
- Shell
- Title
- how to get mac cpu temp
- Category
- Shell
- Title
- install requests python
- Category
- Shell
- Title
- git search all commits for string
- Category
- Shell
- Title
- error: eaccess: permission denied ionic
- Category
- Shell
- Title
- how to uninstall node.JS
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- dockerfile for NGINX vuejs
- Category
- Shell
- Title
- search a tag git
- Category
- Shell
- Title
- how to change password in linux
- Category
- Shell
- Title
- linux chown
- Category
- Shell
- Title
- how to install ansible in centos
- Category
- Shell
- Title
- turn on component via powershell
- Category
- Shell
- Title
- how to upgrade gradle version in linux
- Category
- Shell