Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C: Command name: merge (compile your program into the output file named merge) Arguments Reguired.i (at least three ) command, source file name, target file

C:

image text in transcribed

Command name: merge (compile your program into the output file named merge) Arguments Reguired.i (at least three ) command, source file name, target file name (additionally) number of extra files you may wish to give Ex:/merge a.txt b.txt c.txt d.txt-> appends the contents of a.txt b.txt and c.txt at the end of d.txt create a newfile as a result of merging into a new file when the switch -e is given. Ex:/merge a.txt b.txt c.txt d.txt-e new.txt-> copies a.txt b.txt c.txt amd d.txt into a new file named new.txt (overwrites if this file already exist) Requirements: Make sure both all the filenames are valid Make sure that the number of arguments are not less than 3. Only the last file is changed keeping all other constant and if the last file name does not exist an error message will be generated In case of -e switch, the last file will be A NEW FILE having the merged data of all other files and if that file exists, a warning should appear to re-write it 1. 2. 3. 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

What are the three steps involved in establishing a credit policy?

Answered: 1 week ago

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago