Write a script that demonstrates the use of a shell function, You should use 5 functions with commands such as ls -l, date, du, df, cal. #!/bin/bash  echo “Student Name”  # Shell function demo with one function   function mylist {  echo "List of files in my directory”  ls -l  return  } # Add more functions before the Main   # Main program starts here   # First function  mylist # Second function      # Third function   # Fourth function   # Fifth function

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.4: File Streams As Function Arguments
Problem 2E
icon
Related questions
Question

Write a script that demonstrates the use of a shell function, You should use 5 functions with commands such as ls -l, date, du, df, cal.

#!/bin/bash

 echo “Student Name”

 # Shell function demo with one function

 

function mylist {

 echo "List of files in my directory”

 ls -l

 return

 }

# Add more functions before the Main

 

# Main program starts here

 

# First function

 mylist

# Second function 

 

 

# Third function

 

# Fourth function

 

# Fifth function

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L