Skip to content

Commit dccf9cf

Browse files
committed
update regx usage.
1 parent 3592ac5 commit dccf9cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bashrc/oneline_cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ printf "%`tput cols`s" | tr ' ' '#'
117117

118118
#install django use douban mirror.
119119
pip install django --index-url http://pypi.douban.com/simple
120+
121+
# checks to [192.168.32.208]: host [32.208 xuebao] not found
122+
# match [xxx] and [xxx] content.
123+
grep -Po '(?<=\[)[^]]+'
124+
ifconfig | grep -oP '(?<=inet addr:).*(?= Bcast:)' | xargs -n 4

0 commit comments

Comments
 (0)