DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
Default parameter value in bash
function server() { local port="${1:-8000}" python -m SimpleHTTPServer "$port" }
Source by coderwall.com #
PREVIOUS
NEXT
Tagged:
#Default
#parameter
#bash
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit