<!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,stream editor,流编辑器,输入一段文本,通过处理,得到修改的文本,一个很简单却又很复杂的功能,简单在于只是处理文本,复杂在于需要支持文本处理的全部要求,增删查改等功能。 源文件f...
分类:
其他好文 时间:
2014-07-21 10:35:46
阅读次数:
233
<!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
#!/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
父页面代码: <%@?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
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
一些例子。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
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