Question: Write a bash script that includes a function, called cowSpeak. The script should 1) Get a list of all the files in the current directory

Write a bash script that includes a function, called cowSpeak. The script should 1) Get a list of all the files in the current directory 2) If the file is 5 characters or less in file length, use cowSpeak to echo the file name using cowsay 3) Otherwise, the file name should be echoed without cowsay, but with lolcat for coloration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!