Results of Inelegant Expression

Results of Inelegant Expression

===> cat numbers

1..........5

5.........10

10........20

100......200

===> sed 's/\([0-9][0-9]*\)\.\{5,\}\([0-9][0-9]\)/\1-\2/' numbers

1..........5

5-10

10-20

100-200

Previous slide Next slide Back to the first slide View Graphic Version

Notes:

67