1755702 Members
2586 Online
108837 Solutions
New Discussion

script help...

 
SOLVED
Go to solution
Tommy Palo
Trusted Contributor

Re: script help...

I realized that you wanted to get rid of the target lines also so try:

cat FILE | awk '/PV Name LE/,/Logical extents/' | sed -e '1d' -e '$d' > NEW_FILE
Keep it simple