Redirection is not allowed here. Is
cat
not allowing? But isn't redirection independent of any command running with it?$ cat bk > bk cat: bk: input file is output file
Why does the following redirect empty the file:
$ less bk > bk
awk
also works in the similar way asless
in regard to redirection.awk
is 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 bk
orless bk |tee bk
help you? (in general<text-processing-command> file1 |tee file1
) – Pandya Nov 06 '14 at 05:33