Bash
三月未央
人的存在是神的意志体现, 好的软件是人对神的致敬!
展开
-
Linux bash 之declare
参见此博客文章: http://www.cnblogs.com/fhefh/archive/2011/04/22/2024857.html原创 2017-09-25 11:05:28 · 336 阅读 · 0 评论 -
Linux Bash条件判断
-a file True if file exists. -b file True if file exists and is a block special file. -c file True if file exists and is a character special file. -d file原创 2017-09-25 11:45:42 · 420 阅读 · 0 评论 -
Linux Bash之select
参见: http://blog.csdn.net/flowingflying/article/details/5101563原创 2017-09-25 11:59:15 · 328 阅读 · 0 评论 -
Linux Bash 变量操作
取变量值 截取字符串 字符串长度 字符串替换原创 2017-09-27 20:38:39 · 181 阅读 · 0 评论 -
Linux cscope 使用
Linux cscope使用方法收集文件路径, 将下面脚本保存到一个脚本文件中, 并且在源代码的根目录下执行#!/bin/bashfunction usage(){ echo "Usage: `basename $0` input_path out_file"}if [ $# -ne 2 ]; then usage exit 1fiINPUT_PATH=$1OU原创 2017-09-28 14:40:41 · 284 阅读 · 0 评论 -
Linux Bash彩蛋
欲知彩蛋请先安装:sudo apt-get install sl然后, 就是执行一下:sl原创 2017-09-29 10:20:36 · 350 阅读 · 0 评论 -
git 生成patch
复制如下代码生成一个脚本文件, 并赋予执行权限, 即可happy的生成patch并同时保存原文件及修改后的文件:#!/bin/bashif [ $# -lt 2 ]; then echo "please give me two branches name or two commit id" exit 1fiif [ ! -d .git ]; then echo "no .原创 2017-09-29 11:34:40 · 683 阅读 · 0 评论 -
vim 脚本
备份一下自己的vimrc脚本, 有需要的兄弟拿走不谢~~set tabstop=4 " 设置tab键的宽度set shiftwidth=4 " 换行时行间交错使用4个空格set expandtab " 将每个TAB替换为空格,如果要输入真正的TAB,请使用CTRL-V TABset backspace=2 " 设置退格键可用set nonu原创 2017-10-13 21:19:29 · 521 阅读 · 0 评论