码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
JS生成验证码
<!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>JS生成验证...
分类:Web程序   时间:2014-09-16 17:34:01    阅读次数:209
脚本检测URL
[root@gxapp01shells]#catcheck_saqz.sh#!/bin/bash#date=2014-09-06#istocheckthehttpstatus.ifitisnotOK,restarttheprogressrestart_saqz(){kill-9`ps-elf|grepjboss-saqz|grep-v"grepjboss-saqz"|awk-F‘‘‘{print$4}‘|tail-1`rm-rf/usr/local/jboss/server/jboss-saqz/tmp/*r..
分类:其他好文   时间:2014-09-16 16:05:51    阅读次数:164
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-09-16 14:13:50    阅读次数:133
LeetCode:Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2014-09-16 13:57:50    阅读次数:163
[Z] sed命令替换换行符
sed命令替换换行符sed流编辑器是shell中处理文本内容的一大利器。sed命令从文本流中读取一行文本到模式空间中进行相应的命令、或脚本处理,因此在处理换行符时会有点特殊。下面的命令可以很正确的执行: echo "a,b,c,d" |sed 's/,/\n/g'但是如果我想恢复回来,下面的命令却没...
分类:其他好文   时间:2014-09-16 12:31:10    阅读次数:239
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-09-16 10:24:40    阅读次数:158
【转】JS函数集合大全
1.document.write(""); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5...
分类:Web程序   时间:2014-09-16 09:15:10    阅读次数:295
Linux在所有文件中查找和替换
Linux中,经常会碰到这样的情况:查找某个目录下所有...
分类:系统相关   时间:2014-09-16 04:57:40    阅读次数:295
HTML学习笔记1—HTML基础
一、HTML的基本结构<html>根控制标记<head>头控制标记<title>标题</title>标题标记</head>头控制标记(尾)<body>网页显示区域</body>网页显示区域(尾)</html>根控制标记(尾)双标签:开头和结尾成对出现,如<html>&..
分类:Web程序   时间:2014-09-16 02:49:10    阅读次数:267
linux下根分区使用率监控
由于平时服务器运行时,产生大量的日志文件。每隔一段时间就会出现根目录挤满的现象,故写了此脚本进行监控,当空间使用率达到70%的时候进行清理日志,并将此代码加入到计划任务中,代码如下:#!/bin/bash df-h|grepsd>1.txt head-11.txt|awk‘{print$5}‘>2.txt sed-i‘s#%..
分类:系统相关   时间:2014-09-16 02:47:20    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!