First, you want to chop off 3 dirs; cut, sed, awk or even just shell pattern chopping (${name#pattern}, ${name%%pattern} ) can do this.
Second, you want to add a line break before 'to200', and again, sed, awk or shell pattern chopping. See man bash look for %%:
Quote:
${parameter#word}
${parameter##word}
The word is expanded to produce a pattern just as in pathname expansion. If the
pattern matches the beginning of the value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest matching pattern
(the ``#'' case) or the longest matching pattern (the ``##'' case) deleted. If
parameter is @ or *, the pattern removal operation is applied to each positional
parameter in turn, and the expansion is the resultant list. If parameter is an
array variable subscripted with @ or *, the pattern removal operation is applied to
each member of the array in turn, and the expansion is the resultant list.
${parameter%word}
${parameter%%word}
The word is expanded to produce a pattern just as in pathname expansion. If the
pattern matches a trailing portion of the expanded value of parameter, then the
result of the expansion is the expanded value of parameter with the shortest match-
ing pattern (the ``%'' case) or the longest matching pattern (the ``%%'' case)
deleted. If parameter is @ or *, the pattern removal operation is applied to each
positional parameter in turn, and the expansion is the resultant list. If parame-
ter is an array variable subscripted with @ or *, the pattern removal operation is
applied to each member of the array in turn, and the expansion is the resultant
list.
The sed/awk '.*' is always aggressive, but the pattern chop allows you to select aggressive or minimal wild card. I faintly recall MULTICS qedx or Waterloo FRED allowed you to select, too.
My mnemonic for remembering them is "#" is pound like 'pound on the nose", and '%' is like for a broker or artistliving off royalties, 'take my percentage at the end'.