2007-05-01

以后也写写blog吧



但愿不再被封了。。。

.vimrc


syn on
colo elflord "/usr/share/vim/vim63/colors/
set ic hls is bs=2 fo=cqrt ls=2 shm=at ww=<,>,h,l ts=8 sw=4 enc=prc

有用的命令组合

  • 提取IP地址:
    ifconfig eth0|awk '/Bcast/{print $2}'|awk -F: '{print $2}'

  • 只修改目录权限(当目录不可列出时用这个,需要root来运行)
    chmod 755 `ls -R --color=none|grep :|awk -F: '{print $1}'`

  • 将本目录下的文件直接生成html链接:
    find|awk -F/ '{print "<a href=\""$2"/"$3"\" >"$3"</a><br />"}'>index.html
  •