码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
css 下拉三角
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">? <html xmlns="http://www.w3.org/1999/xhtml">? ?<head>? ? <title> new ...
分类:Web程序   时间:2014-07-22 08:10:34    阅读次数:229
sed详解与入门
sed,stream editor,流编辑器,输入一段文本,通过处理,得到修改的文本,一个很简单却又很复杂的功能,简单在于只是处理文本,复杂在于需要支持文本处理的全部要求,增删查改等功能。 源文件f...
分类:其他好文   时间:2014-07-21 10:35:46    阅读次数:233
Hello world!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> ? ? <met...
分类:其他好文   时间:2014-07-21 10:30:36    阅读次数:221
富文本编辑器焦点
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Strict//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html?xmlns="http://www.w3.org/1999/xhtml"?xml:lang="en"> <head> <style?type=...
分类:其他好文   时间:2014-07-21 10:28:33    阅读次数:569
将nginx日志中的蜘蛛记录删除掉
#!/bin/sh if [ -r $1 ]; then ? ? #Delete Baiduspider ? ? baidu=$(grep -c ‘Baiduspider‘ $1) ? ? if [ $baidu -gt 0 ]; then ? ? ? ? sed -i ‘/Baiduspider/d‘ $1 ? ? ? ? echo "match Baidus...
分类:其他好文   时间:2014-07-21 10:19:23    阅读次数:259
子窗口调用父页面js实例
父页面代码: <%@?page?contentType="text/html;?charset=GBK"%> <html> <head> <meta?http-equiv="Content-Type"?content="text/html;?charset=GBK"?/> <title>new_page_title</title> <script?type="t...
分类:Web程序   时间:2014-07-21 10:09:02    阅读次数:282
【leetcode刷题笔记】Remove Nth Node From End of List
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:其他好文   时间:2014-07-21 09:02:01    阅读次数:161
仿聚美右下角购物车特效
如题如图:代码:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <metahttp-equiv="Content-Type"content="text/html;charse..
分类:其他好文   时间:2014-07-20 15:44:31    阅读次数:245
【文本处理】awk、sed使用 - 二
一些例子。1、显示gopher帐号所在行至最后一行。awk‘/^gopher/{row=NR;while(getline<"passwd"){++i;FS=":";if(i>=row){print$0}}}‘passwdgetline<"filename"若读取成功,则返回非0,当读文件完后,会返回0。awk-F:‘NR==FNR{if($1~/^gopher/){row=NR};next}{if(FNR>..
分类:其他好文   时间:2014-07-20 15:31:51    阅读次数:353
LeetCode——Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the...
分类:其他好文   时间:2014-07-20 15:27:41    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!