Write a script that prompts for a string and then checks


Problem

1. Explain what is wrong with this statement and correct it: [ $# -ne 2 ] && echo "Usage: $0 min_guid max_guid" ; exit

2. Write a script that displays, in head-style, the last three lines of each file in the current directory, duly preceded by the filename.

3. Write a script that prompts for a string and then checks whether it has at least 10 characters using (i) case, (ii) expr.

4. Use expr to extract the parent directory from an absolute pathname stored in the variable x.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a script that prompts for a string and then checks
Reference No:- TGS02671773

Expected delivery within 24 Hours