First bash scripts to smart copy file from folder