Write a c program that takes an argument in the command


Assignment:

Write a C program that takes an argument in the command line e.g. (./yourProgram argv1) then, it takes the result from "ping -h" or whatever the command is, and filter the result with words that start with " - " to filter all the arguments. Then, each argument should be saved in a separate file

It will give you some options to use along with "ping", remember that all arguments starts with "-". Take all the arguments and put each argument in a text file (-m, -s, etc.. each of them should be saved in a file). At the end, all files should be under a folder (directory) and the name of the folder should be the same name of the command we entered, in this case it is "ping".

Note: sometimes you have to write --h or --options to list all the arguments instead of just -h, so put that into your account in the conditions you make.

NOTE: This assignment should work under Linux environment (Ubuntu).

Attachment:- Assignment File.rar

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program that takes an argument in the command
Reference No:- TGS02814192

Expected delivery within 24 Hours