Shell | grep with n following lines

grep -A 10 'foo' sample.txt
➜  dex-method-counts git:(master) ./dex-method-counts ~/Downloads/n.apk | grep -A 10 'hui'
            hui: 304
                agent: 61
                complain: 7
                detail: 29
                list: 42
                pay: 151
                rules: 10
                util: 4
            loader: 307
                model: 60
            locationservice: 424
原文地址:https://www.cnblogs.com/maozhige/p/4123408.html