sed -i path/to/file/you/want/to/change.txt
cat >> path/to/file/to/append-to.txt << /jdk1.8.0_31/bin: /jdk1.8.0_31/ EOF
find . -type f -name -exec sed -i s/this/that/g +
sr find . -type f -exec sed -i s///g +
sr wrong_word correct_word
sc gvim ~/Dropbox/openssl rand -base64 tr -dc .txt scratch gvim ~/Dropbox/openssl rand -base64 tr -dc .txt
curl -Lks <some-url>
curl -OLks <some-url/to/a/file.tar.gz>
M .bashrc ?? .vim/bundle/extempore/ $ git status -s awk .bashrc .vim/bundle/extempore/
col awk -v
$ git status -s col 2 .bashrc .vim/bundle/extempore/
skip cut -d -f-
$ docker images col 3 IMAGE 65a9e3ef7171 7c01ca6c30f2 9518620e6a0e 430707ee7fe8 1dbd7ebffe31 f47686df00df df1e39df8dbf c5e6cf38d985 e426f6ef897e 8cdd417ec611 511136ea3c5a
docker images col xargs IMAGE 65a9e3ef7171 7c01ca6c30f2 9518620e6a0e 430707ee7fe8 1dbd7ebffe31 f47686df00df df1e39df8dbf c5e6cf38d985 e426f6ef897e 8cdd417ec611 511136ea3c5a
docker images col xargs skip 1 65a9e3ef7171 7c01ca6c30f2 9518620e6a0e 430707ee7fe8 1dbd7ebffe31 f47686df00df df1e39df8dbf c5e6cf38d985 e426f6ef897e 8cdd417ec611 511136ea3c5a
docker rmi docker images col xargs skip 1
出处:程序师
链接:http://www.techug.com/ten-tips-for-wonderful-bash-productivity
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31541663/viewspace-2168514/ ,如需转载,请注明出处,否则将追究法律责任。