basic and common shell commands
来源:互联网 发布:科比0506常规赛数据 编辑:程序博客网 时间:2024/05/20 19:15
- cut
use case 1:
cut -c LIST [file|stdio]
, for example,cut -c 1-3[,5-] *.txt
#print characters from 1st to 3rd character column to standard output- use case 2:
cut -b LIST [file|stdio]
use case 3:
cut -d DELIMITER -f LIST [-s] [file|stdio]
, for example,ls -l | cut -d " " -f 2-
#print fields from 2nd to the end of each line in file
grep
grep [options]… PATTERN [FILE]…
Purpose
- search and print lines matching a pattern from file or stdin
Core Points
(1) two variant program:
egrep #same as grep -E, interpret PATTERN as an extended regular expression (ERE)
fgrep #same as grep -F, interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched(2)useful options:
-G #as default basic regexp
-i|-y #ignore-case
-l|-L #suppress normal output but only output file name
–exclude=GLOB(such wildcards as *,?.etc) #
- basic and common shell commands
- Shell Commands
- Shell commands
- shell-commands
- some basic linux commands
- [转] Basic FTP Commands
- Selenium Basic Commands
- Basic vi Commands
- Basic vi Commands [zz]
- Basic FTP Commands
- MQ basic commands
- Basic Git commands
- Basic GDB commands
- Linux Basic Commands
- Basic Git commands
- Git basic commands
- Common FTP Commands
- common linux commands
- 畅通工程(并查集)
- Eclipse启动Tomcat时server.xml和content.xml自动还原问题
- java android 中的接口回调
- Pow(x, n)
- ucos2--str(LIB_mem_a.asm)
- basic and common shell commands
- 软件设计原则
- 函数指针
- RxJava 驯服数据流之时间平移
- 正则表达式
- 【寒江雪】Const指针小结
- spring源码(11)bean的parent属性详解和获取RootBeanDefinition
- #5 关联关系
- 欢迎使用CSDN-markdown编辑器