unix - Explain awk command -


today searching command online print next 2 lines after pattern , came across awk command i'm unable understand.

$ /usr/xpg4/bin/awk '_&&_--;/pattern/{_=2}' input 

can explain it?

see https://stackoverflow.com/a/17914105/1745001 answer duplicated here.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -