Unix QUestion, help please
First, I set out to prove him wrong and thought that I could do it myself, but I was wrong :(. So I am posting here in hopes that someone will help me because now I am running out of time LOL. We havent done much scripting at all in class, so I am stuck. Here is what I have so far:
I would do something like
'ls -R -l'
to get all recursive listing of directories and then process that somehow??
And then I could do something like:
cmd="find . -name \""$arg"\"
cmd="$cmd -o -name \"$i\""
That'll get you a command that finds everything with any of the names you specified. Then just do
$cmd | sort | while read i
echo "<A HREF=\"$i\">$i</A>"
Or something, I dont know, a lot of this is just winging it on my part, it doesnt compile anyway, so it may be off by a LONGSHOT. I would appreciate any and all help with this subject.