Unix & Linux: How to avoid duplication while appending?

Published --