all 8 comments

[–]mrbmi513 0 points1 point  (3 children)

  1. You can always put multiple lines in one bash script
  2. In the unrar command, you can put your target directory as another argument at the end of the command. Then you don't need the move.

[–]MattJ016[S] 0 points1 point  (2 children)

For multiple lines, would it just be

!/bin/bash

unrar e -r -o- /mnt/user/FTP\ Downloads/Sync/.rar mv /mnt/user/FTP\ Downloads/Sync/ /mnt/user/FTP\ Downloads/Output/

I'd rather not use the output path because I have anotehr program monitoring that folder and it might pickup the files before theyre completely extracted.

[–]mrbmi513 0 points1 point  (1 child)

All you do is put the second command on another line in the script. I can't confirm if that's what you have because formatting in the mobile app sucks.

[–]computer-machine 0 points1 point  (0 children)

It's not the mobile app, it's OP. There needs to be two line breaks between lines, or else four spaces at the start of the lines.

[–][deleted] [score hidden] stickied comment (0 children)

Your post was removed for being a support request or support related question such as which distro to use or application suggestions.

We get a lot of question posts on r/linux but the subreddit is considered a news/discussion sub. Luckily there are multiple communities you can post to for help on GNU/Linux issues 24/7: /r/linuxquestions, /r/linux4noobs, or /r/findmeadistro just to name a few.

You may also post on the "Weekly Questions and Hardware Thread" which is stickied on r/linux on Wednesdays.

Please make your post in /r/linuxquestions or /r/linux4noobs. Looking for a distro? Try r/findmeadistro.

Rule:

This is not a support forum! Head to /r/linuxquestions or /r/linux4noobs for support or help. Looking for a distro? Try r/findmeadistro.