Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

This is the previous project:
I am trying to complete this UNIX shell assignment using the following criteria:
* Boot your PC with Knoppix and set you working directory to the removable media.
* Create a directory for each week of the course called week1, week2, week3, week4, and week5 on the removable media.
* Change the working directory to week1 and create a file called "scales" that contains the days of the week (Sunday, Monday etc) with each day on a separate line without using an editor (use cat command)
* Sort this file and append the results to the same fiel, "scales".
* Append the results of the pwd command to the "scales" file.
* In the week1 directory creat the subdirectories and fils as shown:
(consider week1 to be equivalent to $HOME)
touch birds.dat
mkdir water trees
cd water
mkdir oceans seas
cd oceans
touch atl.dat
touch pac.dat
cd ../seas
touch Red.dat
touch Black.dat
cd ~/week1/trees
touch Oak.dat
touch Pine.dat

Place the output of the history command in a file named "scales".

In your week2 directory create two identical files. Name one "scales".ed1 (e.g. miller.ed1) and the other "scales".vi (e.g. miller.vi). The contents of the two files should be:
There once was a man from Nantucket,

Who carried his lunch ina bucket,

Saih he with a sigh,

I am very full As he ate a whole pie,

Using an editor available in your Konsole window that is not the vi editor edit the *.ed1 file:
Add the following line after the last line:
If I just had a donut I'd dunk it.

Remove all text on the fourth line before the word As
Correct misspelled words ina and Saih
Save the file and exit the editor

Using the vi editor on the *.vi file
Add the following line after the last line:
If I just had a donut I'd dunk it.

Remove all text on the fourth line before the word As
Correct misspelled words ina and Saih
Change the limerick so it reflects a woman instead of a man (change all occurrences of man to woman, his to her, and he to she) using search and replace feature
Save the file and exit vi
Place the word count of the two files in a file called "scales".out

Change Nantucket to Pawtucket in the *.ed1 file using the sed command
Append the last two lines of each file to the file called "scales".out without cutting and pasting (Hint: tail command can do this)

Find the differences between the two files and append the result to the file called "scales".out (Hint: diff command can do this)
Use grep to find files contaning Pawtucket and append the output to the file called "scales".out
In your week2 directory create the script in Project.3-7 and name it "scales".3-7

Project 3.7:

In this project, you use additional arithmetic operators in the ((expression)) commands. The goal of this project is to reinforce your understanding of arithmetic operations.
Log in to the Linux system as a user, and then open a Terminal emulation window.
Create a shell script named Project3-7 located in a directory supported by the File System Hierarchy Standard.
The script needs to perform the following pseudocode in the order shown:

Save the file, and then close the editor.
Execute the script, and then record the commands used.
Record or print your script.
Close your window, and then log out.

Please send all files associated as I am pretty lost and I can not follow the logic wihtout getting totally confused. I appreciate your time and efforts.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91621091
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in DBMS

Database and information retrieval assignment - data

Database and Information Retrieval Assignment - Data Privacy Essay Task - Write an essay (aim for 750 words) that addresses issues associated with data proivacy. Use the Australian Privacy Principles - discussed in class ...

Solve the following questions using oracle you are not

Solve the following questions using Oracle. You are not allowed to use the syntax of any DBMS other than Oracle. Make sure to upload an electronic copy of your solution to your CSC335 TRACE folder. Name the file hw4.sql. ...

Sql transactions exercisesconsider table itemnameprice

SQL Transactions Exercises Consider table Item(name,price) where name is a key, and the following two concurrent transactions. T1: Begin Transaction; Update Item Set price = 2*price Where name = 'pencil'; Insert Into Ite ...

Q1 given the following file for assignment workercom

Q1. Given the following file for assignment worker.com, identify data anomalies that must be removed before data can be loaded in data warehouse. Worker_assignment ← -----------------on course web site File is available ...

Your taskyou have been commissioned to develop a database

Your task You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on. The database needs to keep a record of: - All team information, including pl ...

Stored procedure please create the following stored

Stored procedure. Please create the following stored routines using CPS3740_2017S database using the tables in dreamhome database. xxxx is your email id 1) Implement a stored procedure p3Q21_xxxx to display the Branch ci ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

Question lab 1 creating a database designthis assignment

Question: Lab 1: Creating a Database Design This assignment contains two (2) Sections: Database Design Diagram and Design Summary. You must submit both sections as separate files in order to complete this assignment. Not ...

Quesiton 1 what is data-manipulation language dml there are

Quesiton: 1. What is Data-Manipulation Language (DML)? There are four types of access in DML, explain each one. 2. Assume we have a Library Database consists of the following relations: author(author_id, first_name, last ...

You can work on this assignment individually or in a group

You can work on this assignment individually or in a group of 2. If you are working in a group please establish a group in Assignment 2 Group on Canvas In this assignment you are asked to explore the use of neural networ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As