Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for installing and setting up range.bash #1

Open
davehouser1 opened this issue Sep 18, 2020 · 1 comment
Open

Instructions for installing and setting up range.bash #1

davehouser1 opened this issue Sep 18, 2020 · 1 comment

Comments

@davehouser1
Copy link

Any install instructions?
I tried downloading the raw code, chmod +x, renamed to "range" and moved to /bin/range.
"range {1..10}" gave no output.
Any tips?

@dimo414
Copy link

dimo414 commented Sep 19, 2020

The file defines a set of functions you can reuse, the script itself is intended to be sourced, not executed.

$ source range.bash

$ range {1..10}
1 2 3 4 5 6 7 8 9 10

$ range '{1..10}'
1 2 3 4 5 6 7 8 9 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants