In another forum I saw this command:
ls -1 | xargs -n 1 cp ../y/info.txt
It copies info.txt into sub folders (e.g. folder a, folder b, folder c) in the current working directory.
Now I want to copy the file info.txt to sub folders replacing existing info.txt files, but do nothing when the sub folder doesn't contain info.txt.
So I need the opposite of -n.
How can I accomplish this?