上一页 1 ··· 8 9 10 11 12 13 下一页

2011年10月14日

摘要: 第一个 awk让我们继续,开始使用 awk,以了解其工作原理。在命令行中输入以下命令:$ awk '{ print }' /etc/passwd您将会见到 /etc/passwd 文件的内容出现在眼前。现在,解释 awk 做了些什么。调用 awk 时,我们指定 /etc/passwd 作为输入文件。执行 awk 时,它依次对 /etc/passwd 中的每一行执行 print 命令。所有输出都发送到 stdout,所得到的结果与与执行catting /etc/passwd完全相同。现在,解释 { print } 代码块。在 awk 中,花括号用于将几块代码组合到一起,这一点类似 阅读全文
posted @ 2011-10-14 23:32 sunleecn 阅读(1083) 评论(0) 推荐(0) 编辑
 
摘要: I. Sed Substitution DelimiterAs we discussed in our previous post, we can use the different delimiters such as @ % | ; : in sed substitute command.Let us first create path.txt file that will be used in all the examples mentioned below.$ cat path.txt/usr/kbos/bin:/usr/local/bin:/usr/jbin:/usr/bin:/us 阅读全文
posted @ 2011-10-14 23:28 sunleecn 阅读(437) 评论(0) 推荐(0) 编辑
 
摘要: simple awk tutorialwhy awk?awk is small, fast, and simple, unlike, say, perl. awk also has a clean comprehensible C-like input language, unlike, say, perl. And while it can't do everything you can do in perl, it can do most things that are actually text processing, and it's much easier to wo 阅读全文
posted @ 2011-10-14 23:25 sunleecn 阅读(148) 评论(0) 推荐(0) 编辑
 

2011年10月12日

摘要: 备份系统已安装软件的清单,采用如下命令 (dpkg命令后的参数前是两个减号“-”):sudo dpkg --get-selections > ~/Desktop/package.selections恢复安装软件,升级系统。先将以前备份的package.selections文件拷贝到桌面,后采用如下命令:sudo dpkg --set-selections < ~/Desktop/package.selections && apt-get dselect-upgrade 阅读全文
posted @ 2011-10-12 19:47 sunleecn 阅读(487) 评论(0) 推荐(0) 编辑
 

2011年10月3日

摘要: Basic search and replaceEditThe :substitute command searches for a text pattern, and replaces it with a text string. There are many options, but these are what you probably want::%s/foo/bar/gFind each occurrence of 'foo', and replace it with 'bar'.:%s/foo/bar/gcChange each 'foo&# 阅读全文
posted @ 2011-10-03 19:21 sunleecn 阅读(2058) 评论(0) 推荐(0) 编辑
 

2011年9月30日

摘要: pre:1.安装server2.~/.bashrc中force_color_prompt前去掉注释,console带颜色3. /boot/grub/grub.cfg中linux那行 ro后添加 vga=791,console为1024x7683.安装xorg or gdm34.安装gnome-core# Normal VGA console# vga = normal# VESA framebuffer console @ 1024x768x64k# vga=791# VESA framebuffer console @ 1024x768x32k# vga=790# VESA framebuf 阅读全文
posted @ 2011-09-30 19:33 sunleecn 阅读(857) 评论(0) 推荐(0) 编辑
 

2011年8月23日

摘要: dos下替换所有子文件夹下文件名for /r %n in (???.*) do rename "%n" "???.png"结果:替换101.png.andnav为101.png 阅读全文
posted @ 2011-08-23 23:17 sunleecn 阅读(380) 评论(0) 推荐(0) 编辑
 

2010年7月4日

摘要: javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOptions("Editor$Edit$lkbPost",%20"",%20true,%20"",%20"",%20false,%20true)) 阅读全文
posted @ 2010-07-04 21:11 sunleecn 阅读(2016) 评论(0) 推荐(0) 编辑
 

2010年5月13日

摘要: With basic power support, a platform, the core OEM Adaptation Layer (OAL), gets called under the following conditions: OEMInitWhen power is first applied (first transition from NO POWER to ON). OEMIdl... 阅读全文
posted @ 2010-05-13 17:02 sunleecn 阅读(349) 评论(0) 推荐(1) 编辑
 

2010年5月12日

摘要: 转载:http://www.mcuol.com/tech/117/30975.htm 在WinCE中使用的一个重要的文件就是BIB文件,全称Binary Image Builder File。在WinCE的编译过程中会用到BIB文件,应该是在最后的Makeimg阶段。所有的BIB文件会被合并成CE.bib文件,然后Romimage.exe会根据BIB文件中的描述来决定哪些文件最终被包含到WinCE... 阅读全文
posted @ 2010-05-12 23:33 sunleecn 阅读(583) 评论(0) 推荐(0) 编辑
 
上一页 1 ··· 8 9 10 11 12 13 下一页