bigbalbossa
Programmer
I have been a perl programmer for years and now trying to teach myself C...seemed like a good idea
My exercise for the day is to create a program that:
1) Reads a pipe delimited file.
2) Counts the number of pipes per line
3) Outputs two files, one with the correct number of pipes, one with all others.
I envision this program to accept two command line arguments: a) input file b) number of pipes
I've tried to use sscanf to find pipes, but I can't get any further. Any help is GREATLY appreciated.
My exercise for the day is to create a program that:
1) Reads a pipe delimited file.
2) Counts the number of pipes per line
3) Outputs two files, one with the correct number of pipes, one with all others.
I envision this program to accept two command line arguments: a) input file b) number of pipes
I've tried to use sscanf to find pipes, but I can't get any further. Any help is GREATLY appreciated.