随笔分类 -  Linux

摘要:同步发表: "http://blog.hacktons.cn/2017/12/13/shell func return/" 背景 通过shell编程,写一些工具批处理的时候,经常需要自定义函数。更复杂点的情况下,可能有需要返回一个值。 由于在shell的世界中,并不像其他编程语言,它不支持我们所熟悉 阅读全文
posted @ 2017-12-16 11:07 小文字 阅读(1566) 评论(3) 推荐(0) 编辑
摘要:同步发表至 http://avenwu.github.io/2014/12/16/fast_apk_release/###前言前阵子无意间看到美团的技术文章,一口气读了几篇java、android相关的博文,写的都非常不错,其中有一篇讲得是android渠道包的问题,抱着好奇心读完全文,文中提到了几... 阅读全文
posted @ 2014-12-16 18:35 小文字 阅读(1226) 评论(0) 推荐(0) 编辑
摘要:[本文为Android嵌入式学习系列笔记 二]目标:理解diff与patch的使用,通过实例掌握了解新建文件的多种方式,以及如何在已有文件中追加内容在软件开发中,经常会在提交前输出一个diff文件来检查以下代码的改动,比如用git 的时候 常git diff都是一样的。在shell命令中diff 和patch还是很好用的。下面通过实例熟悉下;//新建一个源文件echo "hello diff" > testDiff//复制一份并作适当修改cp testDiff tesDiff1echo -e "append some text:\n hello :)&quo 阅读全文
posted @ 2013-01-26 19:39 小文字 阅读(460) 评论(0) 推荐(0) 编辑
摘要:本文转自http://maketecheasier.com/beginners-guide-to-sed-linux/2012/03/29Aftergrep, the next logical step is atutorialon sed. The sed command comes from Stream EDitor, and as its name indicates, it deals with text flux. However, if sed is one of the most powerful commands in Unix, its manual page is als 阅读全文
posted @ 2012-06-24 14:20 小文字 阅读(456) 评论(0) 推荐(0) 编辑
摘要:SED单行脚本快速参考(Unix 流编辑器)英文标题:USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)原标题:HANDY ONE-LINERS FOR SED (Unix stream editor)整理:Eric Pement - 电邮:pemente[at]northpark[dot]edu 版本5.5译者:Joe Hong - 电邮:hq00e[at]126[dot]com在以下地址可找到本文档的最新(英文)版本: http://sed.sourceforge.net/sed1line.txt ht... 阅读全文
posted @ 2012-06-24 14:20 小文字 阅读(1091) 评论(0) 推荐(0) 编辑
摘要:本文转自http://www.thegeekstuff.com/2010/11/50-linux-commands/,全文讲的是unix/linux下常用的50个命令,并且附带详细说明This article provides practical examples for 50 most frequently used commands in Linux / UNIX.This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Linux co 阅读全文
posted @ 2012-06-24 11:45 小文字 阅读(528) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示