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/:.*//'
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)
The unauthorized use of your neighbor's wireless network is called trolling
Indicate whether the statement is true or false
WYSIWYG stands for ____________________.
Fill in the blank(s) with the appropriate word(s).
To insert a footnote, click the ____________________ command from the References tab.
Fill in the blank(s) with the appropriate word(s).