Do not add an answer unless you're answering the top level question. This should be a reply to my comment. Please follow the steps below to do this:
- Copy the contents of your reply from this answer (you can edit this answer (Ctrl/Cmd + click the link to open it in a new tab) and do a
Select All->Copythere). - Click on "Add Reply" on my's comment here: C: Need help with shell script for ftp get PATRIC bacterial sequences
- Paste the copied text
- Click on the green "Add Comment" button
- Click on
moderateback in your answer here: A: Need help with shell script for ftp get PATRIC bacterial sequences - Choose
Delete Post - Click on the blue
Submitbutton.
Once you do this, I will respond to your question.
Thank you!
• 1 views
•
link
Have you tried running these command step by step on the shell? If they work when you copy-paste from the script and running the script does not work, it'll be easier to zero in on the problem.
Also, I'd recommend against using variable names like
arrayand using acdwithin a script (unless you have really good cause). A script should be able to be invoked from any directory and only create new files/change existing files (with appropriate caution) under the present working directory. It is dangerous to change files elsewhere (especially by non-pro users in non-system locations).content deleted by user
You have not addressed my question either - did you run the commands line by line on the command prompt instead of just trying the script?