Well I'm confused now.
Initially, you said "it's about personal growth, rather than ideas of professional advancement"
Then you said "I would hope to use it as an aid to my repetetive work tasks"
Now whilst you CAN use C to do all those automation type tasks, you're in for a long haul before you would become anything like effective at solving those kinds of problems. If you're looking for any kind of early payback, then you're simply going to get disappointed and give up completely.
Trivial example - sum the file sizes in a directory.
C answer
Code:
#include <stdio.h>
#include <string.h>
int main ( ) {
char buff[BUFSIZ];
int sum = 0;
while ( fgets ( buff, BUFSIZ, stdin ) ) {
int thissize;
if ( sscanf( buff, "%*s%*s%*s%*s%d", &thissize ) == 1 ) {
sum += thissize;
}
}
printf("%d\n", sum );
return 0;
}
You then have to compile that code.
[tt]$ gcc -W -Wall -ansi -pedantic prog.c[/tt]
And then invoke it.
[tt]$ ls -l | ./a.out
9415487
[/tt]
In AWK (just one of several capable scripting languages), its just a few characters typed in on the command line.
Code:
$ ls -l | awk '{ sum += $5 }
END { print sum }'
9415487
Now scale that up to a fairly complicated script, and you're looking at massive amounts of C to write (and debug).
Like I said, if it's "just for the fun of it", then go for it. Just don't believe you'll be able to leverage it for work any time soon.
As a final point, I'd just like to say that learning to program is not the same as learning a programming language.
I mean, once you know how to program, a lot of languages start to look pretty similar.
--