Changes between Initial Version and Version 1 of awk


Ignore:
Timestamp:
2018/03/17 19:44:43 (7 years ago)
Author:
yuna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • awk

    v1 v1  
     1== 特定の行にマッチしたn行前を表示 
     2 
     3{{{ 
     4$ awk '{a[NR]=$0}$0~/read/{printf("%s\n",a[NR-5])}'  test.txt 
     5}}}