My Tech Notes
Search This Blog
bash: remove leading zeros
s="00012" n=$(expr $s + 0) echo $n
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment