Write a shell script program that contains a function

Assignment Help Computer Engineering
Reference no: EM132213397

Question :

Write a shell script program that contains a function called findFiles().

This function can list all files of a particular type in the current directory and then copy them to a new director called MyFiles.

The file type (such as shell script files with a appendix .sh ) will be passed as a parameter when the function is called. You program also needs a function call to the findFiles() function to test it. For example:

findFiles sh

Note: sh is the parameter to be passed into findFiles(). Then the output of your program should be all shell script files with the appendix .sh and all of these files will be copied into a new directory called MyFiles.

Hints: you can use built-in linux commands in your shell scripts such as ls, mkdir...

Reference no: EM132213397

Questions Cloud

Write your own simple shell : Write your own simple shell. Your shell should prompt the user for a command, run it, then prompt the user for their next command.
Write a shell script to ask the user to enter ten numbers : Write a shell script to ask the user to enter 10 numbers. Save these numbers in a file called numbers.
Find a creative way to use the word they entered : Ask for three pieces of information, and find a creative way to use the word they entered in a response back to them.
Write a short python program to generate a random point : Write a short Python program to generate a random point (x, y) uniformly distributed over an area of a circle with radius 1.
Write a shell script program that contains a function : This function can list all files of a particular type in the current directory and then copy them to a new director called MyFiles.
Write a short program that will prompt the user for a number : Write a short program that will Print out whether the number is a perfect square (the product of two equal integers)
Write a setter function that accepts a cstring and position : Write a setter function that accepts a cstring(pass by reference), position and character as parameters.
Take all the lines input to standard input and writes them : Write a short C++ program that takes all the lines input to standard input and writes them to standard output in reverse order.
Find the mean of all values of an integer array : Write a simple ARM assembly language program that finds the mean (as an integer) of all values of an integer array.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Program with a function that returns a random integer

Program with a function that returns a random integer

  List from passwd the uid and the user having the highest uid

List from /etc/passwd the UID and the user having the highest UID. Assuming that a user may be logged in more than once, how do you list only those users.

  Determining output of program

Explain the output if input is diamond? State the output if input is diamond gold?

  Write a physical security policy in detail

Our dependence on computers has resulted in massive amounts of sensitive, and valuable information being physically and digitally stored.

  Make an html page with a form for client

make a form using JavaScript that collects client body statistics and customer contact information for record keeping and marketing purposes.

  How many weeks over time was the project

Which project manager has had the project that went most severely over the estimated project time? How many weeks over time was the project?

  Express the process of customer identification

Then, customer brings the videos to the front desk where an attendant identifies the customer using customer's ID Card, checks the customer's records in the system, and then enters information about rented videos into the system.

  Modify the user options to change the default tablespace

Modify the user options to change the default tablespace to TOOLS. (Note: You need to create a TOOLS tablespace before you answer this question.)

  Design an exception class

I need to write downan applet file that prompts the user for an ID number and an age. Create an Exception class and throw an Exception of that class if ID is not in the range of valid ID numbers (zero through 899), or if the age is not in the rang..

  Different types of permissions for linux and windows systems

Answer the questions below in order to determine the best solution for user-related data storage within your organization. Explain your recommendation.

  What is the running time of your pseudocode

Write the pseudocode for the Depth-First-Search algorithm DFS (G), assuming that G is represented using an adjacency matrix representation.

  Perform binary search and should return the index

The call should perform binary search and should return the index of the integer in the array if found and should return.

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