Skip to content

Instantly share code, notes, and snippets.

@shanegao
Last active December 10, 2015 16:08
Show Gist options
  • Select an option

  • Save shanegao/4459068 to your computer and use it in GitHub Desktop.

Select an option

Save shanegao/4459068 to your computer and use it in GitHub Desktop.
some useful shell scripts
#将当前目录下所有的文件以树形列出
alias lt='ls -R | grep ":$" | sed -e '"'"'s/:$//'"'"' -e '"'"'s/[^-][^\/]*\//--/g'"'"' -e '"'"'s/^/ /'"'"' -e '"'"'s/-/| /'"'"''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment