guolii在google sites

本网站的结构

本网站的结构(网站地图也就是sitemap)大致如下:
首页是sites.google.com/site/guolii2005;
各个网页左边总有“导航”区,“导航”就像网站的“导游”;
网站主要内容是日记(博客)、网址收藏、大杂烩;
日记分类了,有家庭、基督、工作、自由软件。。。
日记‎ > ‎自由软件‎ > ‎

linux命令备忘

发布者:? ?,发布时间:2008-12-10 下午7:23   [ 更新时间:2009-6-22 上午12:26 ]
挂上网上邻居当作本地目录
mount -o username=yourname,password=yourpassword,iocharset=utf8 -t cifs //192.168.0.1/sharename /mnt/

解压缩一个目录中的所有zip文件
for i in *.zip;do unzip -n $i;done

wget -t0 -c -b --limit-rate=20k URL

ls -l |awk '{print $8}'

SED单行脚本快速参考(Unix 流编辑器): http://sed.sourceforge.net/sed1line_zh-CN.html
sed -i~ '/\/FrontEnd\/OnTheSpot = true/c\/FrontEnd/OnTheSpot = false' ~/.scim/config >/dev/null
sed -i~ '/charset=big5/
ccharset=utf-8' foo.html

FILELIST=`find -type f | grep -v ".AppleDouble" | sed -e 's/ /%20/g' | grep "\(html\|htm\|php\|tpl\|txt\)$"`
for filename in ${FILELIST} ; do
  FILE_NAME=`echo $filename| sed -e 's/%20/ /g'`
  iconv -c -f big5 -t utf-8 "$1/$FILE_NAME" > temp_file
  sed -e 's/charset=big5/charset=utf-8/ig' temp_file > temp_file2
done

批量重命名:
for i in *.rpm;do targetname=`echo $i |sed 's/_/-/'` && sudo mv $i $targetname; done

远程同步:
rsync -r /var/cache/apt/archives/ username@host:/home/username/apt/cache/archives/

linux收听圣经广播网简体中文:

mplayer -playlist http://www.bbnradio.org/WindowsMediaDotComASXLinks/wmchinese.asx


排除目录查找包含指定文字的文件:
find . -wholename './phpBB3' -prune -o -print| xargs grep -i 'cache->'