Question: USE C programming language and Please Use the functions getopt() 2. Word-oriented version of fold Write a standard unix tool to break long lines in

USE C programming language and Please Use the functions getopt()
 USE C programming language and Please Use the functions getopt() 2.

2. Word-oriented version of fold Write a standard unix tool to break long lines in a text file, except that your tool will break long lines ata space if possible rather than in the middle of a word This tool takes file names on the command line or it reads the standard input, in the standard unix tool manner, and outputs on the standard output The default width is 80" There is a command-line option which specifies the width (-w plus a numeric argument), and another command-line option -p which says to be wlling to break the line after any punctuation mark even in the absence of spaces Examples For the input text I like the unix programming environment,really I do the command "foldw -w17" would produce the four lines I like the unix programming environment, reall Y I do and the command "foldw-w17-p" would produce the four lines I like the unix programming environment, really I do The -w and -p flags must work in either order and in any standard combination. Use getopt the command-line options correctly to process

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!