Add a file in a folder with bash

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

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.


I would suggest checking out cp (to copy files/directories) or mv (to move files/directories)

Need Your Help

Need a lightweight, free, windows SMTP server


Anyone have any experience with 3rd party SMTP server for windows (server 2003)? I would like to set one up so that the cruise control can send reports of nightly builds and SVN check-ins.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.