My curl output in console is like below. There will be many curl commands in the shell script which i will be looping through "n" times. I would like to capture/grep only those status which are not equal to 200 OK and pass it to a file. Please suggest me.
HTTP/1.1 200 OK
Authorization: Bearer 2d141ec6-1ac7-458a-96f3-318af10ae3b9