Ok, you want to trim "byte" positions... Is that an absolute requirement statement, or just extra description? I mean, will you want to remove byte positions 9-13 and 17-22
everytime, or were they just used to reinforce the location of "name" and "simon"?
If you want to trim those positions everytime, then you can use cut:
Code:
$ echo "hello my name is simon. and i like to do drawings." | cut -c 0-8,14-16,23-
hello my is. and i like to do drawings.
If it's word position you're after:
Code:
$ echo "hello my name is simon. and i like to do drawings." | cut -f 1,2,4,6- -d' '
hello my is. and i like to do drawings.