Hi and welcome to LinuxQuestions!
Quote:
Originally Posted by cmovva
1. When I run the script it connects to the server but gives me following error message
Can't ls: "'/mydir/-lrt *.pdf" not found
|
Remove the double quotes: they prevent
filename expansion so that the asterisk is matched literally.
Quote:
Originally Posted by cmovva
How can I specify enter after cd $DIRNAME in an automated script?
|
Not necessary. In
standard input the newline acts as "enter".
Quote:
Originally Posted by cmovva
2. What does grep "$@" do?
|
$@ is a special parameter that means
all the arguments passed to the script on the command line. Look at the difference between $* and $@
here for more details.
Quote:
Originally Posted by cmovva
Thanks in advance
cmovva
|
You're welcome!