C
ccc31807
I have a small C program that displays file attributes, essentially runningthe stat command and emitting the output to the console.
This morning, I have a new requirement -- to nicely format the output, printing the field names in CAPS and justifying the field values.
C isn't my game, and while I probably could (with some effort) read up on reading in system output as strings, munging them, and displaying them, if it's possible I'd rather use Perl. The program must be self contained in oneexe file. The object is to save a manager from knowing anything about the stat command (yeah, I know.)
Is this doable? Or must I write the entire thing in C?
Thanks, CC.
This morning, I have a new requirement -- to nicely format the output, printing the field names in CAPS and justifying the field values.
C isn't my game, and while I probably could (with some effort) read up on reading in system output as strings, munging them, and displaying them, if it's possible I'd rather use Perl. The program must be self contained in oneexe file. The object is to save a manager from knowing anything about the stat command (yeah, I know.)
Is this doable? Or must I write the entire thing in C?
Thanks, CC.