Write a shell script that displays the names of all directory files, but no other types of files, in the working directory.

What will be an ideal response?


There are many ways to solve this problem. The listdirs script uses file to
identify directory files and grep to pull them out of the list. Then sed
removes everything from file’s output, starting with the colon.
$ cat listdirs
file "$@" |
grep directory |
sed 's/:.*//'

Computer Science & Information Technology

You might also like to view...

Two networks can interconnect using a device called a(n) router.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The unauthorized use of your neighbor's wireless network is called trolling

Indicate whether the statement is true or false

Computer Science & Information Technology

WYSIWYG stands for ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To insert a footnote, click the ____________________ command from the References tab.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology