Results of Inelegant Expression
Results of Inelegant Expression
- The results illustrate the failure to use the * special character when establishing a second positional parameter.
- It only satisfies the match for a two digit value!
===> 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
Notes:
67