Add a file in a folder with bash
- by CuriousGeorge
I have figured out how to remove bad files in my folders but I am wanting to know how to add certain named files to that folder.
I want to add something like address.xml
I have this and can remove the bad files.
for addxml in $(find $DIRECTORY/$directoryname -name address.xml); do
rm -v $addxml
done
I am trying to learn how later down the code I can add a file from another folder no where near the folders that are being edited.