joeljuca / numeric-only

Bash utility function that strips non-numeric characters from its arguments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

numeric-only

Bash utility function that strips non-numeric characters from its arguments.

Usage

numeric-only "123.456.789"  # => 123456789
numeric-only 123 456 789    # => 123456789
numeric-only 12. 34 5.6 .78 # => 12345678

License

ISC

About

Bash utility function that strips non-numeric characters from its arguments

License:ISC License


Languages

Language:Shell 100.0%