Skip to main content
1 of 2
exore
  • 261
  • 1
  • 6
sed -ne '1,/^jum/{s/^jum//p;d;}' -e p

Here is what it does:

  • sed -n: don't print anything unless told to
  • 1,/^jum/: for lines between the 1st one and the one that starts with jum inclusive:
    • s/^jum//p: if you can remove "jum" at start of line, print the result
    • d: and proceed with next line
  • -e p: all other lines, just print them.
exore
  • 261
  • 1
  • 6