随手抄
2007-07-26世上总是有不少这样的人,他们是骄傲的人!也可能是自卑的人!他们有些才学,却不出众;有些天赋却没去努力;有大志气,却能力不足;人生寂寞,却找不到同道的好友。他们活的很压抑,活的很无聊,却没有能力去改变。
【读书摘录】《行动成功学:做自己想做的人》一
2007-07-19第一部分:
过去不等于未来。过去你成功了,并不代表未来还会成功;过去失败了,也不代表未来就要失败。因为过去的成功或失败,只是代表过去,未来是靠现在决定的。现在干什么,选择什么,就决定了未来是什么!失败的人不要气馁,成功的人也不要骄傲。成功和失败都不是最终结果,它只是人生过程的一个事件。因此,这个世界上不会有永恒成功的人,也没有永远失败的人。
第1节:解除自我设限
第2节:成功无止境
第3节:成必有方败定有因
第4节:追求成功的捷径
Linux 下的tree命令
2007-07-01
1 |
#!/bin/bashls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^/]*//--/g' -e 's/^/ /' -e 's/-/|/' |
还有一个好点的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
#!/bin/sh ####################################################### # UNIX TREE # # Version: 2.3 # # File: ~/apps/tree/tree.sh # # # # Displays Structure of Directory Hierarchy # # ------------------------------------------------- # # This tiny script uses "ls", "grep", and "sed" # # in a single command to show the nesting of # # sub-directories. The setup command for PATH # # works with the Bash shell (the Mac OS X default). # # # # Setup: # # $ cd ~/apps/tree # # $ chmod u+x tree.sh # # $ ln -s ~/apps/tree/tree.sh ~/bin/tree # # $ echo "PATH=~/bin:${PATH}" >> ~/.profile # # # # Usage: # # $ tree [directory] # # # # Examples: # # $ tree # # $ tree /etc/opt # # $ tree .. # # # # Public Domain Software -- Free to Use as You Like # # http://www.centerkey.com/tree - By Dem Pilafian # ####################################################### echo if [ "$1" != "" ] #if parameter exists, use as base folder then cd "$1" fi pwd ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^/]*//--/g' -e 's/^/ /' -e 's/-/|/' # 1st sed: remove colons # 2nd sed: replace higher level folder names with dashes # 3rd sed: indent graph three spaces # 4th sed: replace first dash with a vertical bar if [ `ls -F -1 | grep "/" | wc -l` = 0 ] # check if no folders then echo " -> no sub-directories" fi echo exit |