Off topic:How to convert series of numbers to ranges?
0
0
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!

bash linux • 310 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1951 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6