打印文件里的指定行
sed -n '10q;6,10p' file
#!/bin/bash | |
CONTAINER=$1 | |
PID=$(docker inspect $CONTAINER | grep Pid | grep -Eo [0-9]+) | |
nsenter --target $PID --mount --uts --ipc --net --pid |
打印文件里的指定行
sed -n '10q;6,10p' file
git branch -D `git for-each-ref --format="%(refname:short)" refs/heads/3.2\*`
把3.2换成要删除分支的前缀, 比如hotfix
M-x find-name-dired
: RET
Press t
to "toggle mark" for all files found.
Press Q
for "Query-Replace in Files...": you will be prompted for query/substitution regexps.
Proceed as with query-replace-regexp: SPAC
E to replace and move to next match, n
to skip a match, etc.
$ ruby -run -e httpd . -p 9090
$ python -m SimpleHTTPServer -p 8000