⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filename.awk

📁 awk scripts awk scripts awk scripts awk scripts
💻 AWK
字号:
# Date: 06-03-90  19:07
# From: Herb Martin
# To:   Rob Duff
# Subj: comparison:sample

FNR < 3 {
  # the output ALWAYS claims the filenames are equal AFTER the first
  # file, even though the strings printed are DIFFERENT
 
  printf("FNR %d: [%14s]-[%14s]  ", FNR, lastfile, FILENAME) ;
  if (lastfile != FILENAME) print "they are NOT equal"
  else                      print "they are equal"
  lastfile = FILENAME
}
 
FNR == 3 { print "" }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -