Purchase Solution

Shell Programming Input Commands

Not what you're looking for?

Ask Custom Question

Write a shell program which:

- Get input from command line file1 & file2
- Copy file1 to file2

- Check if there is exactly 2 filenames, if not, printout error message
- Check if file1 is the same as file2, if yes, printout error message

Thanks!

Purchase this Solution

Solution Summary

A shell program that checks filename equality.

Solution Preview

#!/bin/bash

#Write a shell program which:

#-Get input from command line file1 & file2
#-Copy file1 to file2

#-Check if there is exactly 2 filenames, if not, printout error message
#-Check if file1 is the same as file2, if yes, printout ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Networking Questions

This quiz consists of some basic networking questions.

C# variables and classes

This quiz contains questions about C# classes and variables.