bash 脚本 - Zirpon | Blog
☀️ 🌃

bash 脚本

The quick brown fox jumps over the lazy dog

Posted by Zirpon Cheung on 2024-07-07
Estimated Reading Time 1 Minutes
Words 77 In Total
Viewed Times

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.[2]

🏝️Endnotes


  1. Here is the footnote. ↩︎

  2. Here’s one with multiple blocks. ↩︎