set -C will prevent the shell from overwriting existing files with the > operator (can always be overriden with the >| operator). Consider adding this to your shell's rc file.

@dpreacher I read it in the POSIX Programmer's Manual so it should work in any POSIX shell

Sign in to participate in the conversation

Linux Geeks doing what Linux Geeks do..