Quote:
|
Originally Posted by mushka #!/bin/bash
if [-e /home/robin/robinspam ] ; then
cp /home/robin/spam /home/robin/robinspam
echo spam was found in mail directory robin |
Shouldn't this be the other way around. You are testing to see if robinspam exists but then you are copying some other file called spam to robinspam. I thought you wanted to copy robinspam to another filename.
You are getting that error because you dont have a space after the first Bracket before the hypen and e.