fork download
  1. #!/bin/bash
  2. s="START
  3. I'm trying to read a file from starting pattern till EOF.
  4. In below example read from*** COPY public.objkeys( till EOF.
  5. However few lines are missed out.
  6. Not sure what is the cause.
  7. END"
  8. sed -n -e '/\*\*\* COPY public.objkeys/,//p' <<< "$s"
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
In below example read from*** COPY public.objkeys( till EOF. 
However few lines are missed out. 
Not sure what is the cause.
END