bash: Override noclobber setting.



  • Take into account the main readme for this section. README first.

    noclobber setting in bash prevents a file from being overwritten.

    For example if oneworld file is written you would see the following:

    $ echo Hello World > oneworld
    -bash: oneworld: cannot overwrite existing file
    

    If you know it is safe to write to the oneworld file, you can override the write using the following:

    $ echo One nation under a groove >| oneworld
    $ cat oneworld
    One nation under a groove
    

Log in to reply
 

© Lightnetics 2024