2025-03-27
技术
00

流程图的基础学习

image.png

2025-03-20
linux相关
00

单词统计

  • 完整命令
sh
cat words.txt | tr -s ' ' '\n' | sort | uniq -c | sort -r | awk '{ print $2, $1 }'
2025-03-14
linux相关
00

shell脚本杀死进程以及子进程

sh
function kill_processes() { local pid=$1 if [ -f /proc/$pid/status ]; then for subpid in $(ps -e o pid=,ppid= | awk -vPID=$pid '{if($2==PID)print $1;}'); do kill_processes $subpid done fi if [ -f /proc/$pid/status ]; then kill -9 $pid fi }
2025-03-14
其他
00

本次说明只涵盖mac的操作

  • command + w 删除当前页面
  • command + option + -> or <- 进行页面左右切换
  • command + 数字跳转到对应的页面
  • command + shift + t 恢复关闭的页面
2025-03-13
linux相关
00

linux

正则表达式

image.png