|
So, running OS X 10.6.7 with SABnzbd+. I am trying to make a script and have not had any luck doing it. I know it is a very simple task, but for some reason by bash-fu isn't strong with this script. Say I download Ubuntu 11.04, it finishes and it unpacks to a directory called "Ubuntu 11 04." Inside of this folder, is the actual burnable image file as well as the associated NFO file. I want to move that burnable image file and that NFO to the Desktop and then delete the folder "Ubuntu 11 04." How do I go about doing this? Any help is GREATLY appreciated! Edit: I have tried this and several slight variations to this. The weird thing is, "$1" shows the path, $DIR_DEST echoes /Users/Crush/Desktop/, and when running the same thing in Terminal.app as separate commands, it works fine. The strange thing is the script always wants to complain saying something along the lines of "/Users/Crush/Download/Linux ISO/* /Users/Crush/Desktop/*" does not exist, when they in fact do. code:
Crush fucked around with this message at 02:18 on May 16, 2011 |
# ¿ May 16, 2011 02:15 |
|
|
# ¿ May 5, 2024 15:07 |
|
FISHMANPET posted:I think that when you're putting the first parameter in quotes, it's not going to expand that *, so it's literally looking for a file named * in the Linux ISO directory. Try putting the quotes around just $1. This was it. I love you. Thanks!
|
# ¿ May 16, 2011 03:47 |