Skip to content

Instantly share code, notes, and snippets.

@nefo-mi
Created December 25, 2012 14:27
Show Gist options
  • Save nefo-mi/4373471 to your computer and use it in GitHub Desktop.
Save nefo-mi/4373471 to your computer and use it in GitHub Desktop.
treeコマンドでクリスマスツリー
paste <(tree --charset=C |rev |awk '{printf "%50s\n", $0}'|sort) <(tree --charset=C|rev|awk '{printf "%50s\n", $0}'|sort|rev)|sed "s/[[:alnum:]]/`echo -e '\e[1;32m&\e[0m'`/g" |sed "s/[\|\`\-]/`echo -e '\e[1;33m&\e[0m'`/g"|sed "s/[\.,\_]/`echo -e '\e[1;35m☆\e[0m'`/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment