redirection
Bash override noclobber
Request output redirection even when noclobber is active; use only for intentional replacement of an owned file.
Formal Syntax & Structure
bash syntaxbash
[n]>|fileReturn Value
redirection effect
Request output redirection even when noclobber is active; use only for intentional replacement of an owned file.
Working Example
Example Snippetbash
printf 'old\n' > fixture.txtset -o noclobberprintf 'new\n' >| fixture.txtcat fixture.txt