Entering edit mode
5.9 years ago
mbk0asis
▴
680
Hi, all!
Is there a way to print the ranges from series of numbers using bash commands.
For example,
1,2,3,6,7,8
to
1-3,6-8.
Thank you!