code:add=$2
count=0
num=$(grep -c "" $1)
while $count <= $num
do
stuff
count=$[count+add]
done
quote:I think you mean multi-national conglogmatates.
Originally posted by Artemisia Tridentata:
I thought you were going to complain about high gasoline prices and the evils of multi-national oil companies.
quote:Don't be stupid, I'm not asking people to do my homework I'm asking for an explanation on how 2 commands work, which neither man nor the book seem to give any concrete examples, I have tried trial and error and it always recursively goes through every subdirectory when i just want the root.
Originally posted by Bokonon:
Blayne, don't be circumspect, and don't get people to do your homework.
-Bok
quote:Now your just being an ignoramus, I would ask my teacher this question but I am not currently able to ask him the question, I have tried all of the above and it hasn't worked, so prove that I'm being lazy or don't post at all.
Originally posted by El JT de Spang:
Not true at all. Stop being so lazy.
quote:Well, maybe they'll be using slackware and compiling the kernel. Regardless of the degree of difficulty, Comp Sci students ought to have some contact with linux/unix.
Originally posted by fugu13:
If you're going to be installing Linux, you'll be doing at least some of that stuff on a completely different box.
Of course, installing Linux (at least for the common variants) is as easy as installing Windows, nowadays, so I wonder what they're going to be teaching you.
quote:Watch out for the line length limit. Its really easy to go over it when piping from find to tar. There are several ways around it, but its really terrible when you untar that file to find out it didn't really work.
Originally posted by Blayne Bradley:
so I need to do some wierd piping of find to the tar command i think.