We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c31dca commit 4d1fa8cCopy full SHA for 4d1fa8c
bashrc/oneline_cmd
@@ -172,3 +172,9 @@ pip install django --index-url http://pypi.douban.com/simple
172
# match [xxx] and [xxx] content.
173
grep -Po '(?<=\[)[^]]+'
174
ifconfig | grep -oP '(?<=inet addr:).*(?= Bcast:)' | xargs -n 4
175
+
176
+# awk usage
177
+# pattern { action statements }
178
+# function name(parameter list) { statements }
179
+# awk '/pattern/ { action }' and '{if($1==pattern) action}'
180
+ps aux | awk '{if($1=="root") print $(NF-1)}'
0 commit comments