View Single Post
Old 07-23-2012, 05:43 PM   #23
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
That must be on two lines, not one.
The text file line endings **must be** "Unix" (lf).
Don't let any of the software (such as Notepad) add a hidden .txt to the filename.

Your file should look like:
Code:
#!/bin/sh
mv /mnt/us/*.gif /mnt/us/Images/ -f
Those quote characters, if present in the file, mean something different to the shell program than to a person.

Last edited by knc1; 07-23-2012 at 05:49 PM.
knc1 is offline   Reply With Quote