linux
二啸
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cut 命令 in BASH
1. 取出2nd 和7th 字母 cut -c2,7 2. 取出2nd - 7th字母 cut -c 2-7 也可以 cut -c -7 cut -c 2- 3. 按tab分割 cut -d $'\t' -f1-3 4. head / tail 命令 head -n 22 | tail -n 11 5. tr 命令 tr "()" "...原创 2018-04-22 14:02:13 · 469 阅读 · 0 评论 -
awk grep sed
Arrays in Bash 参考 https://www.thegeekstuff.com/2010/06/bash-array-tutorial/ https://coderinme.com/basic-bash-concepts-part-9-arrays-with-solved-hackerrank-problems/ array=($(cat)) echo ${array[@...原创 2018-04-23 09:51:20 · 216 阅读 · 0 评论 -
常见bash命令
1. 显示字符串 Echo “String” 2. for 循环 for((i = 1; i < 100; i += 2)) do echo $i done 参考 https://www.garron.me/en/articles/bash-for-loop-examples.html 3. 接受输入 read read name echo "Welco...原创 2018-04-20 08:21:03 · 436 阅读 · 0 评论
分享