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...
When you use the Copy or Cut commands, the content is placed in the ________
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
List and describe hardware needed for a wireless, Internet-connected home network.
What will be an ideal response?
Computer Science & Information Technology