No need to call external programs such as sed or cut , or other languages ββsuch as awk , bash , can do this for you:
var="79.472850 97 SILENCE" echo ${var:0:9}${var:14} 79.472850 SILENCE
${var:0:9} copies 9 characters starting at position 0 (beginning of text).
${var:14} copies from character position 14 to the end of the text.
Alternatively, if you need spatially separated fields:
read one two three <<< "$var" echo "$one $three" 79.472850 SILENCE
Again, this uses pure bash.
source share