Redirection is not allowed here. Is
catnot allowing? But isn't redirection independent of any command running with it?$ cat bk > bk cat: bk: input file is output fileWhy does the following redirect empty the file:
$ less bk > bkawkalso works in the similar way aslessin regard to redirection.awkis the one with which I actually found the problem, while the above examples are meaningless
In general, what are the right way to use redirect?
cat bk |tee bkorless bk |tee bkhelp you? (in general<text-processing-command> file1 |tee file1)