51

管道符常营命令以及特殊符号-肥肥的老林

 6 years ago
source link: http://blog.51cto.com/13067688/2084383
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
管道符常营命令cut:截取字符串,比如我们要以“:”作为分隔符,取第一列,[root@localhost~]#cat/etc/passwd|head-5|cut-d":"-f1rootbindaemonadmlp这里-d是指定分割符,-f后面接数字,是指截取范围,上面的例子是截取第一段,就输入-f1,如果想截取两段,就用“,”分开,后面再接一个数字。如f1,2。如果是1-3段,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK