📄 count-link
字号:
#!/bin/cshset dirs = (`pwd`)if ($#argv) set dirs = ($argv)foreach dir ($dirs) pushd $dir >/dev/null echo echo Directory $dir if ( -e SYSTEM) then set f = `grep MAIN SYSTEM | sed 's/^MAIN //' | sed 's/ .*$//' | sort` @ t = 0 foreach file ($f) echo Counting link $file set head = $file:r set tot = `wc -c $head.{K,LINK} | grep total` @ t += $tot[1] echo $file " " $tot[1] end echo total " $t" else echo no SYSTEM file endif popd >/dev/nullend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -