参考: http://blog.csdn.net/li740207611/article/details/52 …
作者存档:phpor
od 输出字符对照表
1 2 3 4 5 6 7 8 9 |
# echo {A..Z} {a..z} |tr -d " " |od -at x1 0000000 A B C D E F G H I J K L M N O P 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 0000020 Q R S T U V W X Y Z a b c d e f 51 52 53 54 55 56 57 58 59 5a 61 62 63 64 65 66 0000040 g h i j k l m n o p q r s t u v 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 0000060 w x y z nl 77 78 79 7a 0a |
ctags 学习
ctag识别关键字的时候,一般不会把中划线(-)作为单词的一部分;对于bash脚本,函数名中是可以含有中划线的 …
JSON2HTML | Pure Javascript Templating
http://json2html.com/
Exclude dash (-) from word separators in vi – Super User
https://superuser.com/questions/403516/exclude-dash-fro …
继续阅读“Exclude dash (-) from word separators in vi – Super User”
bash vs sh
一般来讲,/bin/sh 都是软连接到bash的,所以,你基本上会认为 /bin/sh 和 /bin/bash …
shell 之 return
不惑: shell函数中可以使用return语句提前返回 疑惑:有些shell脚本中,函数外也会出现retur …
php 获取数组中前N个值
如下,获取数组中的前2个元素:
1 2 3 4 5 6 |
bash-4.1# php -r 'print_r(array_chunk(array('a'=>1,'b'=>2,'c'=>3),2,true)[0]);' Array ( [a] => 1 [b] => 2 ) |
难道还有更方 …
bash 小知识之 dubble dash
先看两个例子: basename 和 printf 都是常用的命令,怎么还能出问题? 对于shell来讲,参数 …
文件copy之断点copy
下载文件时,最好有断点续传的功能,免得下载了一部分断掉了导致前功尽弃,curl就支持断点续传; 文件copy时 …