What does the >|
-redirection in bash do?
I just found out, that echo text >| somefile
creates the file somefile
(if not existing yet), and fills it with text
. Similar as echo text > somefile
would do.
Further experiments suggest that the >|
-redirection behaves as the >
-redirection does.
So, what is the >|
-redirection exactly?
Since it's hard to google for the string ">|", I could not really search the web (so I have added "greater-pipe" in the title of this question since that is google-able).