linux命令行显示指定行号的内容
以第四行为例,要查询的文件名为list.txt:
方法1:
方法2:
sed -n '4,4p' list.txt
方法3:
方法4:
tac list.txt |tail -n 4|tac|tail -n 1
References: http://zhidao.baidu.com/question/91856742
以第四行为例,要查询的文件名为list.txt:
方法1:
发表者
俞 伟军
位置在:
5/24/2010 10:45:00 AM
0
评论
$> svn propset svn:ignore -F .cvsignore .
property 'svn:ignore' set on '.'
Reference: http://svnbook.red-bean.com/en/1.1/ch07s02.html
发表者
俞 伟军
位置在:
12/09/2008 01:35:00 PM
0
评论
标签: Command , CommandLine , ignore , Line , SVN
1. $(id) 与 prototype 用法类似,只能传字符串的Element Id。
2. $$(selector) 与 prototype 用法类似,传一个CSS Selector字符串,另专门还有一个$x("xPath")方法接受xpath方式查询DOM节点。
3. dir(object) 遍历object所有属性,在console中打印出来。
4. clear() 清空console。
5. debug(fn) 在对应的fn方法第一行加一个断点,当此方法调用时就会进入此方法第一行,可进行断点调试此方法。对应的有undebug(fn)取消断点。
6. console.log(object[, object, ...]),console是Firebug在Firefox中添加的一个全局变量名。其log()方法会将对象打印到firebug控制台中,支持类似printf()的功能。
7. 同console.log()类似的还有console.debug(),console.info(),console.warn(),console.error()方法。
8. console.assert(expression[, object, ...])断言功能,用来检查表达式是否正确执行。
Reference: http://getfirebug.com/commandline.html
http://getfirebug.com/console.html
发表者
俞 伟军
位置在:
10/05/2008 10:40:00 PM
0
评论
标签: Command , CommandLine , Console , Error , Firebug , Firefox , LogFormat