One-line Bash shell script Just ls, grep, and sed Quiz Quick, what does the following Unix/Linux command do? $ ls -R | grep "^[.]/" | sed -e "s/:$//" -e "s/[^\/]*\//--/g" -e "s/^/ |/" If you said, "Well, that's obvious; it shows a graphical representation of the current subfolders.", you'd be correct. Example You can use the command to create a program called tree that would work something like th
![Unix/Linux Folder Tree](https://cdn-ak-scissors.b.st-hatena.com/image/square/ed8536ded00f3ed9d5349148a5f8765861eeabb5/height=288;version=1;width=512/https%3A%2F%2Fcenterkey.com%2Ftree%2Fscreenshot.png)