ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
I found a command to display directory tree (see above), it didn't work correctly. It gave error message "Illegal variable name". I think the error is at $
sign. How can I modify this command for cshell environment?