Created
December 11, 2015 15:49
-
-
Save unabridgedxcrpt/01467030fb673fd17631 to your computer and use it in GitHub Desktop.
remove leading zero. I used this for a bash script to remove the leading 0 from a month number
This file contains hidden or 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
nozero=$(echo $number | sed 's/^0*//') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment