Create a script that copies all the HTML files from the current working directory to the parent of the working directory, but only copy files that did not exist in the parent of the working directory or were newer than the versions in the parent of the working directory.
I have tried: cp -rua *.html
but it doesn't work.
CodePudding user response:
cp -u *.html ../
was the only script that worked in bash
CodePudding user response:
Try using the command cp -n -u *.html ../