Enviar búsqueda
Cargar
Shell奇技淫巧
•
Descargar como KEY, PDF
•
8 recomendaciones
•
794 vistas
David Xie
Seguir
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 13
Descargar ahora
Recomendados
Zsh
Zsh
Rhythm Sun
Log analytics
Log analytics
itseo
nodejs在微博前端开发中的应用
nodejs在微博前端开发中的应用
dong yuwei
常用Mac/Linux命令分享
常用Mac/Linux命令分享
Yihua Huang
Mac os Terminal 常用指令與小技巧
Mac os Terminal 常用指令與小技巧
Chen Liwei
Redis use cases
Redis use cases
Bottom Wang
Introduction to FreeBSD commands
Introduction to FreeBSD commands
郁凱 黃
Windbg入门
Windbg入门
晓锋 陈
Recomendados
Zsh
Zsh
Rhythm Sun
Log analytics
Log analytics
itseo
nodejs在微博前端开发中的应用
nodejs在微博前端开发中的应用
dong yuwei
常用Mac/Linux命令分享
常用Mac/Linux命令分享
Yihua Huang
Mac os Terminal 常用指令與小技巧
Mac os Terminal 常用指令與小技巧
Chen Liwei
Redis use cases
Redis use cases
Bottom Wang
Introduction to FreeBSD commands
Introduction to FreeBSD commands
郁凱 黃
Windbg入门
Windbg入门
晓锋 陈
主機管理基本指令練習(四)
主機管理基本指令練習(四)
K- Peggy
手机腾讯网Js资源版本增量更新方案w3ctech
手机腾讯网Js资源版本增量更新方案w3ctech
luyongfugx
新北市教師工作坊 -- Bash script programming 介紹
新北市教師工作坊 -- Bash script programming 介紹
fweng322
MongoDB for C# developer
MongoDB for C# developer
dianming.song
智能Dns工作流程及配置
智能Dns工作流程及配置
Yiwei Ma
如何学习Bash Shell
如何学习Bash Shell
LI Daobing
2, OCP - installing and creating a database
2, OCP - installing and creating a database
ted-xu
Autorelease pool
Autorelease pool
Michael Pan
Mongodb
Mongodb
bj
Introduce to Linux command line
Introduce to Linux command line
Wen Liao
高性能No sql数据库redis
高性能No sql数据库redis
paitoubing
Google developer tool 簡介
Google developer tool 簡介
Shu Ting Hsieh
Web scraping入門1
Web scraping入門1
兆欽 丘
Bigdata 大資料分析實務 (進階上機課程)
Bigdata 大資料分析實務 (進階上機課程)
家雋 莊
大话redis设计实现
大话redis设计实现
rfyiamcool
Linux基础
Linux基础
zhuqling
揭秘家用路由器Ch10 sharing
揭秘家用路由器Ch10 sharing
Yi-Jun Zheng
scrapy+sphinx搭建搜索引擎
scrapy+sphinx搭建搜索引擎
Ping Yin
打造你自己的DNS服务器
打造你自己的DNS服务器
Yihua Huang
走上It之路
走上It之路
David Xie
Unit test
Unit test
David Xie
Desfalques contra o Santos.
Desfalques contra o Santos.
Timbuonline
Más contenido relacionado
La actualidad más candente
主機管理基本指令練習(四)
主機管理基本指令練習(四)
K- Peggy
手机腾讯网Js资源版本增量更新方案w3ctech
手机腾讯网Js资源版本增量更新方案w3ctech
luyongfugx
新北市教師工作坊 -- Bash script programming 介紹
新北市教師工作坊 -- Bash script programming 介紹
fweng322
MongoDB for C# developer
MongoDB for C# developer
dianming.song
智能Dns工作流程及配置
智能Dns工作流程及配置
Yiwei Ma
如何学习Bash Shell
如何学习Bash Shell
LI Daobing
2, OCP - installing and creating a database
2, OCP - installing and creating a database
ted-xu
Autorelease pool
Autorelease pool
Michael Pan
Mongodb
Mongodb
bj
Introduce to Linux command line
Introduce to Linux command line
Wen Liao
高性能No sql数据库redis
高性能No sql数据库redis
paitoubing
Google developer tool 簡介
Google developer tool 簡介
Shu Ting Hsieh
Web scraping入門1
Web scraping入門1
兆欽 丘
Bigdata 大資料分析實務 (進階上機課程)
Bigdata 大資料分析實務 (進階上機課程)
家雋 莊
大话redis设计实现
大话redis设计实现
rfyiamcool
Linux基础
Linux基础
zhuqling
揭秘家用路由器Ch10 sharing
揭秘家用路由器Ch10 sharing
Yi-Jun Zheng
scrapy+sphinx搭建搜索引擎
scrapy+sphinx搭建搜索引擎
Ping Yin
打造你自己的DNS服务器
打造你自己的DNS服务器
Yihua Huang
La actualidad más candente
(19)
主機管理基本指令練習(四)
主機管理基本指令練習(四)
手机腾讯网Js资源版本增量更新方案w3ctech
手机腾讯网Js资源版本增量更新方案w3ctech
新北市教師工作坊 -- Bash script programming 介紹
新北市教師工作坊 -- Bash script programming 介紹
MongoDB for C# developer
MongoDB for C# developer
智能Dns工作流程及配置
智能Dns工作流程及配置
如何学习Bash Shell
如何学习Bash Shell
2, OCP - installing and creating a database
2, OCP - installing and creating a database
Autorelease pool
Autorelease pool
Mongodb
Mongodb
Introduce to Linux command line
Introduce to Linux command line
高性能No sql数据库redis
高性能No sql数据库redis
Google developer tool 簡介
Google developer tool 簡介
Web scraping入門1
Web scraping入門1
Bigdata 大資料分析實務 (進階上機課程)
Bigdata 大資料分析實務 (進階上機課程)
大话redis设计实现
大话redis设计实现
Linux基础
Linux基础
揭秘家用路由器Ch10 sharing
揭秘家用路由器Ch10 sharing
scrapy+sphinx搭建搜索引擎
scrapy+sphinx搭建搜索引擎
打造你自己的DNS服务器
打造你自己的DNS服务器
Destacado
走上It之路
走上It之路
David Xie
Unit test
Unit test
David Xie
Desfalques contra o Santos.
Desfalques contra o Santos.
Timbuonline
Publications
Publications
pimstallmann
Ahmed+Abd+Elfatah+
Ahmed+Abd+Elfatah+
ahmed Abd Elfatah morsi
Guide project in uk
Guide project in uk
michaelxu
Destacado
(6)
走上It之路
走上It之路
Unit test
Unit test
Desfalques contra o Santos.
Desfalques contra o Santos.
Publications
Publications
Ahmed+Abd+Elfatah+
Ahmed+Abd+Elfatah+
Guide project in uk
Guide project in uk
Más de David Xie
Git version control
Git version control
David Xie
云计算
云计算
David Xie
Hadoop
Hadoop
David Xie
沙龙升级
沙龙升级
David Xie
Git使用
Git使用
David Xie
Python Unit Test
Python Unit Test
David Xie
Más de David Xie
(6)
Git version control
Git version control
云计算
云计算
Hadoop
Hadoop
沙龙升级
沙龙升级
Git使用
Git使用
Python Unit Test
Python Unit Test
Shell奇技淫巧
1.
Shell奇技
巧 David Xie david.xie@me.com
2.
导读 奇技的前奏 检查文件内容 文件行数/字数检查 文件内容替换
3.
奇技的前奏
4.
管道 | ps -ewf |
grep mac
5.
重定向 > >> < ls > file.lst echo
“xxx.xxx.xxx.xxx” >> /etc/hosts mysql -U root -p < test.sql
6.
awk awk -F “
” ‘{print $1,$2}’
7.
sed -i 原地替换 ‘s/original/new/g’ sed -i
“” ‘s/class/CLASS/g’ <FILE>
8.
xargs 对前面结果的每一行做处理 ps -ewf |
grep daimaduan.com | awk ‘{print $2}’ | xargs kill -9
9.
好戏
始 !
10.
检查文件内容 find src/ -name
‘*.py’ -type f -name, -type, -user, -group, -size
11.
检查文件内容 find src/ -name
‘*.py’ -type f | xargs grep -n -i ‘copyright’
12.
文件行数/字数检查 wc -w <FILE> wc
-l <FILE> find src/ -name ‘*.py’ | xargs wc -l
13.
文件内容替换 find protected/ -name
'*.php' | awk - F ":" '{print $1}' | xargs sed -i "" 's/class/CLASS/g'
Notas del editor
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Descargar ahora