hmmmmmmmmmm, my machine has lots of new shortcuts not that I have W7 :S I lost everything I just wrote -,- aaaanyway...
we just started this week, so I'm trying and failing and learning
I am to write a bash script that:
takes two command line parametres (these are used to search a place AND a course/ class from a list in a file)
returns the lines that have a match in
both paramtres
counts and returns number of lines/matces found
----
bash works something like this:
###
#!/bin/bash
echo "prints something to screen" # prompts user to give computer input
read varname # read reads the input and makes whatever I put in place of varname point to it (like var="something")
echo "you typed $varname" # prints
you typed ..and whatever the user typed in as input
# also var=$(($a+$b)) gives var the value of variables a+b and can then be called as $var
#
http://www.justlinux.com/nhf/Programming/Introduction_to_bash_Shell_Scripting.html more info here