bash 脚本

🌳basic

1
2
history  5
grep -10 'qsm' test.log//打印匹配行的前后10行

🌳分割大文本文件

1
2
3
wc -l all.log
split -l 35000 -d --verbose all.log all-log-split-
for i in `ls | grep all-log-split-`;do a=`echo $i.txt`; mv $i $a;done

Here is a footnote reference,[^1] and another.[^longnote]

🌳Endnotes

[^1]: Here is the footnote.
[^longnote]: Here’s one with multiple blocks.