I have a file which contains the following logs
Get Authentication token from url
1) should successfully return a token
Get profile
✓ should successfully return a profile
Create a user profile
✓ Should successfully create a new profile
Get a 400 Error when using invalid URL
✓ should return 400 status code )
3 passing (9s)
1 failing
1) Get Authentication token from url
should successfully return an access token:
CypressError: `cy.request()` failed on:
https://testurl.com
The response we received from your web server was:
> 400: Bad Request
This was considered a failure because the status code was not `2xx` or `3xx`.
If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`
-----------------------------------------------------------
I basically want to just output everything below 1 failing
and I want it to stop at the dashed line. how can I do this using grep,awk or sed?
I have tried awk '/failing/' RS="\n\n" ORS="\n\n" sample2
and awk -v RS='' -v '/failing/' sample2
but all that outputs is 1 failing
and nothing else.