Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!


King Abdulaziz University Awk Command in Text Processing Program

King Abdulaziz University Awk Command in Text Processing Program

King Abdulaziz University Awk Command in Text Processing Program

Question Description

I’m working on a linux question and need guidance to help me understand better.

Q1- Using the awk utility, filter out the following output to solely show the size and mount point. Show all of your commands in a snapshot.

-bash-4.2$ df -h

Filesystem Size Used Avail Capacity Mounted on

/dev/wd0a 1008M 130M 828M 14% /

/dev/wd0d 1008M 8.6M 949M 1% /suid

/dev/wd0e 63.0G 29.8G 30.1G 50% /usr

/dev/wd0f 19.7G 16.0G 2.7G 85% /var

/dev/wd0g 3.9G 500K 3.7G 0% /tmp

Q2 Modify the script below using the following instructions. Show all of your commands and output in a snapshot.

a) Adjust the thresholds to get some results. Hint: lower the value of 99, 95, 90, etc. For example, the Docker login has 25% capacity of some directories.

b) Instead of the e-mail (like, echo a message into a file.

# Platform: Not Platform Dependent


space= df -k | awk ‘{print $5}’ | tr -d ‘%’

if [ ${space} -gt 99 ]

then mailx -s “Warning”

Disk space has reached 99%

elif [ ${space} -gt 95} ]

then mailx -s “Warning”

Disk space has reached 95%

elif [ ${space} -gt 90 ]

then mailx -s “Warning”

Disk space has reached 90%


echo “disk fine”



You have a UNIX file named “food” with the following information. Show all of your commands and output in a snapshot.

cat food

The menu contains pork.

Using the sed command, change the pork to fish.

King Abdulaziz University Awk Command in Text Processing Program

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Top Grade Essays only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Top Grade Essays are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Top Grade Essays is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Top Grade Essays, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.