cp -u flag

TIL about the -u flag for cp. It will only copy files that don’t exist, or are newer than their existing counterparts in the destination directory.

$ cp -u *.txt app_dir

It’s a nice replacement to the interactive flag (-i) if we know we want this behaviour.