ls l sed dd What does the sed command string do a Outputs t
ls -l | sed \'/^d/d\'
What does the sed command string do?
a) Outputs the contents of the directory but, deletes all blank lines from the output.
b) Outputs the contents of the directory but, removes all lines that contain filenames from the output.
c) Outputs the contents of the directory but, removes all references to sub-directories from the output.
d) Outputs the contents of the directory.
Solution
Answer is option C
ls -l lists the contents of director
sed /pattern/action
^d - directories in current directory (sub directories)
action d- deletion
