Last active
July 12, 2021 00:30
-
-
Save xuyuji9000/d5ce33a5acd5c66cc04aebfcc681fafc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This shell file used for practice the learning from the following link: | |
# - https://blog.dnmfarrell.com/post/bash-function-names-can-be-almost-anything/ | |
function ++ { (( $1++ )); } | |
a=1 | |
++ a | |
echo $a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This snippet demonstrate the usage of arithmetic in bash.