why when redirecting output to a file any file extension seems to be fine?
I've noticed that when you redirect output to a file that some people use an extension that seems meaningful. Like if redirecting an error they might name it foo.err. I've done this myself as well but m curious why it works and you don't need to name it foo.txt. Is that cuz cat does something like interpet the ascii code so it doesn't matter what the extension? Sorry if this is a silly questions but wanted to know.