| bash scripting newbie can someone tell me what i'm doing wrong? i'm supposed to code a linux shell script named fileinof which allows users to view info on files in a specified directory and the script will accept one optional parameter as a directory path.
here's what i got so far
$ cat fileinfo
#!/bin/s
if [ $# -ne 1 ]; then
echo 1>&2 Usage: fileinfo [directory path]
exit 127
fi
but at the command line when i enter $ ./fileinfo it says bash: $: command not found. WHY? am i missing something? i can't figure it out. |