bash function
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
- kubectl without sudo
- Category
- Shell
- Title
- linux copy files to share space to copy to other users home
- Category
- Shell
- Title
- linux make executable
- Category
- Shell
- Title
- pip upgrade
- Category
- Shell
- Title
- terminal how to find a file name
- Category
- Shell
- Title
- Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status
- Category
- Shell
- Title
- copy contents of multiple files to one file powershell
- Category
- Shell
- Title
- isdigit in c
- Category
- Shell
- Title
- how to kill suspended jobs
- Category
- Shell
- Title
- latex number listing as equation
- Category
- Shell
- Title
- beautifulsoup4 install
- Category
- Shell
- Title
- bash for interval
- Category
- Shell
- Title
- compile h5py
- Category
- Shell
- Title
- push code to github command line
- Category
- Shell
- Title
- mac anydesk start at login
- Category
- Shell
- Title
- rails server already running
- Category
- Shell
- Title
- ubuntu install brew
- Category
- Shell
- Title
- ps -aux command in linux
- Category
- Shell
- Title
- install laravel on windows
- Category
- Shell
- Title
- ubuntu trash can won't empty
- Category
- Shell
- Title
- pip installer for mac
- Category
- Shell
- Title
- crear usuario linux
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- how to update npm
- Category
- Shell
- Title
- git push crontab
- Category
- Shell
- Title
- xcode errSecInternalComponent
- Category
- Shell
- Title
- : sudo apt install apache2
- Category
- Shell
- Title
- pipenv install virtual at same path
- Category
- Shell
- Title
- check apache version ubuntu
- Category
- Shell
- Title
- linux min 19.10 install virtualbox
- Category
- Shell
- Title
- powershell start a process and wait for it to finish
- Category
- Shell
- Title
- linux install nvm
- Category
- Shell
- Title
- pip install opencv version
- Category
- Shell
- Title
- install gnu grep on mac
- Category
- Shell
- Title
- pip install ScraperAPIClient
- Category
- Shell
- Title
- git show diff between branches
- Category
- Shell
- Title
- shared folder virtualbox ubuntu
- Category
- Shell
- Title
- serverless not using aws profile
- Category
- Shell
- Title
- git load all submodules
- Category
- Shell
- Title
- javascript execute powershell script
- Category
- Shell
- Title
- github graphql query to get your repos
- Category
- Shell
- Title
- ssh tunnel port
- Category
- Shell
- Title
- cordova ios emulators
- Category
- Shell
- Title
- git reset hard
- Category
- Shell
- Title
- netstat check port
- Category
- Shell
- Title
- add alias fish shell
- Category
- Shell
- Title
- close chrome tab from command line ubuntu
- Category
- Shell
- Title
- git view stash
- Category
- Shell
- Title
- git reset
- Category
- Shell
- Title
- kubernetes auto complete
- Category
- Shell
- Title
- restart bluetooth ubuntu
- Category
- Shell
- Title
- linux find from file content
- Category
- Shell
- Title
- .gitignore not working
- Category
- Shell
- Title
- install cocoapods
- Category
- Shell
- Title
- inicializar as credenciais no git
- Category
- Shell
- Title
- bash call another script relative to current script
- Category
- Shell
- Title
- convert all files and folders in current directory into zip in linux
- Category
- Shell
- Title
- git create master branch in empty repository
- Category
- Shell
- Title
- linux spotify client
- Category
- Shell
- Title
- gatsby transformer remark
- Category
- Shell
- Title
- remove the last commit git without losing changes
- Category
- Shell
- Title
- pip install tinymce
- Category
- Shell
- Title
- how to delete a package in ubuntu
- Category
- Shell
- Title
- search a tag git
- Category
- Shell
- Title
- how to update local repo when i make changes to github remote repo
- Category
- Shell
- Title
- find all files edited after date linux
- Category
- Shell
- Title
- install scypi
- Category
- Shell
- Title
- restart apache ubuntu
- Category
- Shell
- Title
- how to install jupyter notebook in windows 10
- Category
- Shell
- Title
- add credentials git linux
- Category
- Shell
- Title
- ldap query powershell
- Category
- Shell
- Title
- how to make your own linux distro
- Category
- Shell
- Title
- react quill
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- clipboard in ubuntu
- Category
- Shell
- Title
- statsmodels logit function
- Category
- Shell
- Title
- extract tar.gz ubuntu terminal
- Category
- Shell
- Title
- how to switch branches in git
- Category
- Shell
- Title
- can i go back to bash from zsh mac
- Category
- Shell
- Title
- @react-navigation/drawer install
- Category
- Shell
- Title
- bash ls all subdirectories
- Category
- Shell
- Title
- serve current directory from command line
- Category
- Shell
- Title
- whats up with docker compose and orphan containers
- Category
- Shell
- Title
- store result of command in variable bash
- Category
- Shell
- Title
- git change git commit date
- Category
- Shell
- Title
- archive linux
- Category
- Shell
- Title
- kill process on port windows
- Category
- Shell
- Title
- list all the files in a directory without the directory in linux
- Category
- Shell
- Title
- how to uninstall react native cli globally
- Category
- Shell
- Title
- julia install linux
- Category
- Shell
- Title
- git eof config
- Category
- Shell
- Title
- linux external hard drive chmod
- Category
- Shell
- Title
- git host key verification failed
- Category
- Shell
- Title
- copy folders linux
- Category
- Shell
- Title
- bash tee stdout and stderr
- Category
- Shell
- Title
- how to install gatsby transformer plugin
- Category
- Shell
- Title
- force git to use ssh
- Category
- Shell
- Title
- install tomcat on mac brew
- Category
- Shell
- Title
- clone from git Could not find module "@angular-devkit/build-angular
- Category
- Shell
- Title
- ubuntu install tree
- Category
- Shell