Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Search
Context Navigation
← Previous Change
Wiki History
Next Change →
Changes between
Initial Version
and
Version 1
of
awk
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
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
}}}