码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
一天一脚本--之三(修改文件名)
脚本需求:今天同事给了一个文件,文件名为"web-2014-06-18-10:00:55.tar.gz”,用tarxfweb-2014-06-18-10:00:55.tar.gz解压会报错:[root@unptmp]#tarxvfweb-2014-08-28-10\:00\:55.tar.gztar:Cannotconnecttoweb-2014-08-28-10:resolvefailed脚本实现:思路:想想就是因为..
分类:其他好文   时间:2014-08-30 11:23:29    阅读次数:181
shell文本过滤编程(十):cut命令
【版权声明:转载请保留出处:blog.csdn.net/gentleliu。Mail:shallnew at 163 dot com】 cut命令类似于awk,从行里面抽取信息,是一个功能弱化版的awk。 cut命令格式为:cut [options] filename 其中options有: -d  指定与空格和t a b键不同的域分隔符。类似于awk的“-F”。 -f field...
分类:其他好文   时间:2014-08-30 09:59:59    阅读次数:266
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-08-30 08:49:59    阅读次数:210
[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-08-30 01:11:08    阅读次数:286
JVM原生不支持尾递归优化,但是Scala编译器支持
The?JVM doesn’t support TCO natively, so tail recursive methods will need to rely on the?Scala compiler performing the optimization.----------"Scala in Depth" 3.5.2 Jvm本身是不支持尾递归优化得,...
分类:其他好文   时间:2014-08-29 22:47:58    阅读次数:368
shell编程三大神器之sed
shell编程三大神器之sed...
分类:其他好文   时间:2014-08-29 22:40:48    阅读次数:229
做css题目遇到的问
19.$("div#intro .head") 选择器选取哪些元素? 您的回答:id="intro" 的首个 div 元素中的 class="head" 的所有元素 20.jQuery 是 W3C 标准吗? 您的回答:Yes 正确答案:No 2.jQuery 使用 CSS 选择器来选取元素...
分类:Web程序   时间:2014-08-29 18:36:58    阅读次数:260
linux 系统
# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# lspci -tv # 列出所有PCI设备# lsusb -tv # 列出所有...
分类:系统相关   时间:2014-08-29 18:14:08    阅读次数:271
shell文本过滤编程(九):sed命令
【版权声明:转载请保留出处:blog.csdn.net/gentleliu。Mail:shallnew at 163 dot com】 sed和awk类似,是很重要的文本过滤工具。 调用sed和调用awk一样,有三种方式: 1. 在命令行键入命令; 2.将sed命令插入脚本文件,然后调用sed; 3. 将sed命令插入脚本文件,并使sed脚本可执行。 使用sed命令行格式为:     ...
分类:其他好文   时间:2014-08-29 16:09:38    阅读次数:342
【leetcode】Swap Nodes in Pairs
题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only cons...
分类:其他好文   时间:2014-08-29 13:13:37    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!