Question

Write three shell scripts as follows:
3. lsdirs.sh: Write a shell script called lsdirs.sh which lists just the directories in the current directory. (test)
4. see.sh: Write a shell script called see.sh taking a filename name as argument which uses ls if the file's a directory and more if the file's otherwise. (test)
5. wordlen.sh: Write a shell script called wordlen.sh that asks the user to type a word in, then tells the user how long that word is. (read, wc)

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

#!/bin/sh
ls -ld */...

This is only a preview of the solution. Please use the purchase button to see the entire solution

$15.00

or $1 if you
register a new account!

Assisting Tutor

Related Homework Solutions

Get help from a qualified tutor
Live Chats