linux
二啸
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cut 命令 in BASH
1. 取出2nd 和7th 字母 cut -c2,72. 取出2nd - 7th字母cut -c 2-7也可以cut -c -7cut -c 2-3. 按tab分割cut -d $'\t' -f1-34. head / tail 命令head -n 22 | tail -n 115. 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 $idone参考 https://www.garron.me/en/articles/bash-for-loop-examples.html3. 接受输入 readread nameecho "Welco...原创 2018-04-20 08:21:03 · 436 阅读 · 0 评论
分享