File Manipulation Shell Script

I need a shell script that does the following:

1. Create file c.txt, and write to it the contents of files: a.txt and b.txt (a.txt and b.txt already exist and are not a part of this project)

2. ftp file c.txt using the host, destination dir, username, and password I provide. Please allow me to set these as vars in your script.

3. Send an email to an address I provide containing the results of the file upload attempt (either confirmation of upload, or error)

4. delete file c.tx…

Leave a Reply

Your email address will not be published. Required fields are marked *