Create unix command using c

Assignment Help C/C++ Programming
Reference no: EM131695229

Assignment: Create Unix Command using C

1. Introduction

The purpose of this assignment is to use command line arguments and files in C so that a new command may be designed. The command we will create is scopy i.e. selective copy that is a variation to copy only some number of lines if user wishes to enter a number

2. Instructions

You can usenanoor any other editor to write your C code.

The UNIX command would be replicating the Windows COPY command with the only exception that you may define the number of lines to copy.

Command name: scopy (selective copy)

Arguments :

Required : source file name, target file name

Optional : number of lines as an integer or range, -> n, -m, n- or n-m

3. Steps:

1. Make sure both source file and target file names are given and are valid
2. Make sure that the source file exists whereas target file DOES NOT EXIST.
3. No file should be overwritten without confirmation
4. If the number of lines is not mentioned, the entire file is copied.

Reference no: EM131695229

Questions Cloud

Shopping from face-to-face to online : Assuming that the shift in shopping from face-to-face to online is permanent, what will the closing of more department stores mean.
What would be effective in improving organizational ethics : Many organizations have responded by, for example, appointing a chief ethics officer, beginning an ethics training program for workers.
Discuss void-for-vagueness doctrine : discuss or expand on a topic presented in the textbook, a case dealing with the subject, or a current event from the news or Internet
Some lawyers claim that apple is a monopoly : Some lawyers claim that Apple is a monopoly. What would you need to know to answer this question, based on what you have learned in this course?
Create unix command using c : Create Unix Command using C. The purpose of this assignment is to use command line arguments and files in C so that a new command may be designed.
Review the arguments for and against social responsibility : Review the arguments for and against social responsibility. On a scale of 1 to 10, rate the validity and importance of each point.
Discuss kings distinction between just and unjust laws : Do you agree with King's belief that you need to create tension in order to have reform come about. Why or why not
What areas would stress in decision-making process : You are the CEO of an up-and-coming toy company and have plans to go international soon. What steps would you take to carry out that strategy?
Why is stock-based compensation added to net income : Apologies for the format, and hopefully I have included all necessary information: Why is stock-based compensation added to net income

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd