Looking for help with parsing file contents in bash [newbie]

Hi

I'm just messing around with bash and trying to learn it because I have a course next semester dealing with OS design where we need to know how to use SSH client and either bash or ksh. I've never done shell scripting before.

I just started today and I was wondering how parsing files works. I'm looking at this guide (unstable.blogspot.com/2010/04/simple-bash-script-to-parse-log-file.html *sorry for that but it says i can't post url cuz im new here)but I had a few questions.

unstable.blogspot.com/2010/04/simple-bash-script-to-parse-log-file.html

How do I set the directory so it finds that file? I keep getting "can't open log.txt"

I know its a nooby questiong sorry.

[LEFT]If the file is not in the current directory then you need to provide the entire path...

cat /full/path/to/your/file/log.txt

HTH
--ahamed
[/LEFT]