Add a file in a folder with bash

Posted by CuriousGeorge on Stack Overflow See other posts from Stack Overflow or by CuriousGeorge
Published on 2012-09-07T14:14:28Z Indexed on 2012/09/07 15:38 UTC
Read the original article Hit count: 183

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about bash