Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I need help HELP with this assigment in unix that deals with file redirection A Simple Shell to run One Command with File Redirection

Hello I need help HELP with this assigment in unix that deals with file redirection

A Simple Shell to run One Command with File Redirection (< input, > output, >> append).

Design and implement a simple shell program to handle "one command" with file redirection.

For example (and for test cases)

1. ls > part2out1.txt

2. wc < part2out1.txt

3. date > part2out2.txt

4. ls -1 >> part2out2.txt

5. wc < part2out2.txt >> part2out3.txt

6. whoami

7. date

Provide a Makefile file to compile your program.

Your Program Name: a3p2redir1.c

Part 2.

Two Commands in Pipe, with File Redirection (< input, > output, >> append).

Design and implement a simple shell program to handle "two commands in pipe" with file redirection.

For example (and for test cases),

1. ls | sort > part3out1.txt

2. cat < part3out1.txt | wc > part3out2.txt

3. wc < part3out2.txt | cat part3out2.txt

4. wc < out2.txt > out3.txt

5. whoami

6. date

Provide a Makefile file to compile your program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions