Created
May 26, 2016 16:16
-
-
Save nicdoye/c8ddf33d4d72ffdde83b86a51badfcb2 to your computer and use it in GitHub Desktop.
Incrementing variables on the command line/in scripts for fun and profit
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
# replace with your variable name | |
variable=$(echo ${variable} 1 + f | dc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment