Skip to content

Commit bf46bd8

Browse files
committed
add sed usage and history.
1 parent 531b6ea commit bf46bd8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bashrc/oneline_cmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ ifconfig | grep -oP '(?<=inet addr:).*(?= Bcast:)' | xargs -n 4
180180
# awk '/pattern/ { action }' and '{if($1==pattern) action}'
181181
ps aux | awk '{if($1=="root") print $(NF-1)}'
182182

183+
# sed usage
184+
# -i[SUFFIX]: backup extension.
185+
# sed -i 's/100000/500000/' edit-filename
186+
187+
#shopt -s histappend; history -a
188+
183189
# redis
184190
#$./redis-cli --latency -h '127.0.0.1' -p '6379'
185191
#$./redis-cli

0 commit comments

Comments
 (0)