Which is also exactly what said youtuber said in the same video (assuming this is about who I think it is!).
They also made such reasonable statements as “I also pipe cat into grep when on the command line and playing around with my pipelines, but when it comes to writing full bash scripts to do useful work, think about using grep directly.” (not an exact quote btw!)
Cat into grep lets you insert something between the file read and grep if you need to without having to reorder anything
Which is also exactly what said youtuber said in the same video (assuming this is about who I think it is!).
They also made such reasonable statements as “I also pipe cat into grep when on the command line and playing around with my pipelines, but when it comes to writing full bash scripts to do useful work, think about using grep directly.” (not an exact quote btw!)