Hi, im new to linux and scripting in linux. I need help!
Im trying to a very simple task in a script to move 1 file, but cant get it to work. When i use this at the command propmt it works fine, but in a script file I get an error. see below.
My script has the following
#!/bin/sh
mv File2 /etc/Files/
I get the following error:
when moving multiple files last argument must be a directory
I have no spaces in the file. What am I doing wrong.
thanks
West
Im trying to a very simple task in a script to move 1 file, but cant get it to work. When i use this at the command propmt it works fine, but in a script file I get an error. see below.
My script has the following
#!/bin/sh
mv File2 /etc/Files/
I get the following error:
when moving multiple files last argument must be a directory
I have no spaces in the file. What am I doing wrong.
thanks
West