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 the Split Table button is clicked, a blank paragraph is inserted above the table
Indicate whether the statement is true or false
Computer Science & Information Technology
Form control labels make the form accessible for visitors with disabilities because the label is read using assistive technologies and associated with the data to be entered.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology