bash function
#!/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:
- install pygame
- cmd substring replace
- could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?
- linux scp
- how to check which packages homebrew has installed
- react native expo project in github e commerce
- list all users linux
- how to move file in directory in linux
- rename remote branch in git
- create user in linux
- git reset remote
- npm move package from devdependencies to dependencies
- generate ssh key paitr
- mac docker ubuntu image
- git get remote branches
- grep docker logs
- shell set environment variable
- how to install pil in anaconda
- changing folder permission in linux
- how to know partition of current directory
- cmd prompt format
- grep ip address
- git init repo
- raspberry wifi scan