Shortcuts in Science
Friday, 18 August 2017
Bash Let Builtin
Cited from
Bash Positional Parameters Explained with 2 Example Shell Scripts
Shell builtin ‘let’ allows arithmetic operation to be performed on shell variables.
let add=$1+$2
let sub=$1-$2
let mul=$1*$2
let div=$1/$2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment