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

Assisting Tutor

Related Homework Solutions

Linux Scripting Final Task
Homework Solution
$58.00
UNIX
Command
Find
Hosts
Pipe
Grep
Passwd
Csh
Cd
Link
Blink
Symbolic
Mailx
PID
Process
Lpsched
Root
Awk
Smcgowan
Usr
Bin
Linux & C++ Problems
Homework Solution
$30.00
Computer Science
Linux
C++
Functions
Statements
Variables
Loops
Conditions
File Management
Commands
Codes
Child Processes
Command Line
Parent Processes
Executable Program
Buffers
Forks
Operators
Computer Science Questions
Homework Solution
$75.00
Computer Science
Linux
Memory
CPU
Algorithms
Jobs
Percentage
Deadlock
Programmers
PCS Scheduling
SCS Scheduling
Resources
Vectors
Tasks
System Snapshots
Logical Addresses
Physical Addresses
Transfers
Shell Scripts & Programming Language C
Homework Solution
$30.00
Linux
Shell Scripts
Computer Science
Programming Language C
Lowercase
Uppercase
Backup Directory
Algorithms
File Management
Printing Messages
TCSH
Get help from a qualified tutor
Live Chats