I must find in a file this string:
200 https://www.example.example
The value 200 is randomic, I must find every HTTP return code (ex 200, 301, 404 etc...etc)
How can I grep only this string with return code variable (I don't want specify every return code in grep command)?
cat file.txt | grep "*** http*"
But it doesn't work.
grep "*** http*"is not close to the regexp you want. You should find some kind of regexp tutorial if you're going to be trying to use any tools that use regexps (grep, sed, awk, perl, ruby, etc....).