Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part III: Write output of following commands and describe the function of commands (the last one only in each question). 5) $ ls *.awk| awk

Part III: Write output of following commands and describe the function of commands (the last one only in each question).

image text in transcribed

5) $ ls *.awk| awk '{print "grep --color 'BEGIN'" $1 }'|sh (Notes: sh file runs file as a shell script. $1 should be the output of 'Is *.awk in this case, not the 1st field) Output: Function: 6) $ mkdir test test/test1 test/test2 $ cat>test/test.txt This is a test file ^D (CTRL + D) $ cd test $ ls -1. | grep ^d' | awk '{print "cp -r." $NF Output: TI "$NF".bak"}'| sh

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_2

Step: 3

blur-text-image_3

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions