Write shell script filesreneam that takes list of input file

Assignment Help Computer Engineering
Reference no: EM131984923

Problem

Write a shell script filesreneam.sh that takes a list of input file names (e.g. generated using a wildcard character) and makes copies of those files to new filenames with predefined prefex and suffix strings. Use variables to hard code the prefex "new " and suffix "dat" to replace "pdb". Use a conditional to detect if there are one or more input filenames and take the appropriate action as shown below. Use a for loop to iterate through the file names where each iteration extracts the file name root ,, copies the file to the new file name, and echoes the result.

Reference no: EM131984923

Questions Cloud

List and describe five ways you might collect information : List and describe at least five ways you might collect information about user needs for a system (for example: survey).
European imperialism but against the newer form of economic : He was the first statesman of world stature to speak out not only against European imperialism but against the newer form of economic domination sometimes
State the rule that buffett and munger use in repurchasing : For continuing shareholders, however, repurchases only make sense if the shares are bought at a price below intrinsic value.
Write a script to know how many processes run given command : Schedule few tasks using at, look at them and remove them. Schedule few birthdays using crontab. Write a script to know how many processes run a given command.
Write shell script filesreneam that takes list of input file : Write a shell script filesreneam.sh that takes a list of input file names and makes copies of those files to new filenames with predefined prefex.
Basis for the modern welfare state : They reflected a deep commitment to the humanization of the industrial system and laid the basis for the modern welfare state.
What counter-offer would you have to make to the bank : If you wanted to earn a 20% return, compounded monthly, do you believe that $200,000 would be a good investment?
Create two files on the computer named file-one and file-two : Create 2 files on the computer named file1 and file2. Set the permissions on file1 to "r w x r w _ r _ _"(spaces added for clarity).
Hypothetical business scenario : Hypothetical business scenario in which there is a clear ethics violation

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to declare a new villian called sharpay

Declare a new Villian known as sharpay who has a wit of 24, a stealth of 16, and who has currently claimed three victims: Chad, Troy, and Gabriella. Give sharpay an initial capacity to vanquish 10 victims.

  What is the latest status of the fire wire standard

What is the latest status of the Fire Wire standard? Is it going to succumb to the USB standard? Explain your response.

  What is the intended meaning of the given queries

Write a PROLOG program which checks if a list contains another as a sublist. What is the intended meaning of the given queries?

  Suppose that you worked for a small company developing

assume you worked for a small company developing web-based software. further assume that your company presently makes

  Make a view called v_no_cost

Using the ITD410_P1 database you created for the Independent Project in Unit 1, write scripts in a file known  ITD410_P3.SQL to create the following views. Remember to include a uses clause at the top of your script file to use the ITD410_P1 datab..

  The employee and the weekly pay amount

make a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week.

  Pros and cons of each with a focus on it investments

Total Cost of Ownership (TCO) and 2) Return on Investment (ROI). Describe each of these approaches, state your preference, and analyze the pros and cons of each with a focus on IT investments

  Flow of email messages from jamborea to your customers

A few of the messages, however, are probably legitimate emails.  Should you do anything to restrict the flow of email messages from Jamborea to your customers?

  What is the capacity of the drive

Given the instruction set for MARIE in this chapter, decipher the following MARIE machine language instructions. (Write the assembly language equivalent.)

  Define the structure of the graph

For each counterexample, define the structure of the graph and the cardinality of the variables, and show the ordering produced by each member of the pair.

  Why do j menu objects not generate action events

Why do J Menu objects not generate action events? Can you add a menu item directly to the menu bar? Try it out. What happens?

  Draw tree storing k as its keys using maximum number of node

Consider the set of keys K = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}. Draw a (2,4) tree storing K as its keys using the maximum number of nodes.

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