function in bash
function hello {
echo Hello
}
hello
function e {
echo $1 # $1 is the first argument
}
e Hello #!/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
}
#FIRST METHOD
Hello () {
echo 'Hello Wordl'
}
Hello
#SECOND METHOD
function Hello {
echo 'Hello Wordl'
}
Hellofunction_name () {
<commands>
}
Also in C++:
- gestures in ubuntu
- bash jump to
- npx cap sync Unable to find node_modules/@angular-eslint/builder
- git ftp empty string is not a valid pathspec. please use . instead if you meant to match all paths
- wp-cli search-replace
- virtualenvwrapper-win
- shell mac move faster
- display settings ubuntu 20.04 in right side
- git undo stage
- install heroku cli on linux
- npm install aos
- linux require a password to open a certain file
- linux get recursive directory size
- install pytest
- bash cut first column
- docker compose install ubuntu
- vmware unable edit
- react icons
- composer install package with specific version
- create swapfile ubuntu
- bash command for unzipping tar.gz files
- gsed comand store file
- how to compare percentage value in shell script
- react hooks npm install