Simple bash script
Hello.
I am very new to bash scripting and was hoping you could me out a
bit. I am trying to create a bash script (but I'd prefer an alias) which
changes the directory and then lists the files in that direcotry. This
is what I came up with:
#!/bin/sh
cd $1;
ls;
This does not work and I believe this is due to the script starting a
new "sh" shell and then changing the directory in THAT shell. How should
I do this?
--
Deniz Dogan
|