https://github.com/joeljuca/numeric-only
Bash utility function that strips non-numeric characters from its arguments
https://github.com/joeljuca/numeric-only
bash bash-utility
Last synced: 2 months ago
JSON representation
Bash utility function that strips non-numeric characters from its arguments
- Host: GitHub
- URL: https://github.com/joeljuca/numeric-only
- Owner: joeljuca
- License: isc
- Created: 2018-07-29T08:20:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T06:00:34.000Z (over 7 years ago)
- Last Synced: 2025-02-23T22:50:02.615Z (over 1 year ago)
- Topics: bash, bash-utility
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# numeric-only
Bash utility function that strips non-numeric characters from its arguments.
## Usage
```sh
numeric-only "123.456.789" # => 123456789
numeric-only 123 456 789 # => 123456789
numeric-only 12. 34 5.6 .78 # => 12345678
```
## License
[ISC](license)