I have a question related to my bash shell script. Basically, I need to develop a script that copies certain files from one directory to another. Sounds easy, however, its quite a challenge for me and I hope some of you might help me. So script should work like this:
Scriptname Source_path Destination_path
1) 1st Problem - the source_path might not exist and I need to echo an error message.
2) 2nd Problem - the destination path might not exist, however, I need to create some or all of the directories and then copy the files from source. Else, if directory exists, I just need to copy.
Hope this is clear and hopefully someone might help me thanks!