Are there any additional advantages of cat'ing a file and piping it to grep, besides convenience? The convenience being that, when I retrieve commands such as those below from my history, the cursor is at the end of the line, so it is easy to modify the command with different text to grep against the same file.
So what other advantages might there be to the following convention:
cat /var/tmp/trace.2043925204.xt | grep -in profile cat /var/tmp/trace.2043925204.xt | grep -n Profile-Main
grep -in profile /var/tmp/trace.2043925204.xt grep -n Profile-Main /var/tmp/trace.2043925204.xt