📄 ex-17-07_awk.sh
字号:
#!/bin/sh# Chapter 17 - Using awk# This script demonstartes using numeric expressions in awk## You may have to change /bin/echo to /bin/echo -n in order# for the output to look the same as in the book.for i in $@ ;do if [ -f "$i" ] ; then /bin/echo "$i\c" awk ' /^ *$/ { x+=1 ; } END { printf " %s\n",x; } ' "$i" else echo "ERROR: $i not a file." >&2 fidone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -