Here's a couple that should be easy.
First, I have a file with 1000 lines. Each line has the following
format. a line number, followed by a colon (:), followed by a word, followed by
another colon, followed by the line number again.
Now, I can change that format if necessary. That's not *real*
important. But anyway, using a shell script, I want to be able to scan that
file and get that word between the two colons, then assign it to a variable for
later use. I'll continue to look through shell scripts for examples that I
might be able to use, but in the meantime, I thought I'd throw it out here for
the world to see.
Second, I have written a C program to create the above mentioned
file. The "word" I'm creating is a 8 character random password. Anyway, I need
to "seed" the password generator. What routines are available in C to glean
the numbers from the system clock. I can then use that as a seed.
Thanks in advance,
Lyndon F. Bartels