Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239347
  • 博文数量: 91
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-12 09:38
文章分类

全部博文(91)

文章存档

2017年(1)

2011年(1)

2008年(15)

2007年(74)

我的朋友

分类: LINUX

2007-08-23 15:59:08

cut:
syntax cut option [files]
it is useful if you want to access the vertical slice of a file,by fault,the slices are delimilit by a tab
  parameter used options
  -b list print bytes in list options
  -c list     print characters in list columns
  -d delim set field for -f
  -f list print list fields
  example cut -d: f1 /etc/passwd; cut -c 1 /etc/passwd
  
join
  syntax join [options] file1 file2 print a line for each pair of input lines,one each from file1 and file2.
  parameter -j1 field ;join on field of file1
          -j2 field ;join on field of file2
          -j field ;join on field of both file1 and file2
example:
 suppose file1 contains the following:
1 one
2 two
3 three
and file2 contains
1 11
2 22
3 33
issuing the command:join -j 1 file1 file2
yield the following output:
1 one 11
2 two 22
3 three 33

od:
  syntax od [options] files
  dump files in octal and otehr formats.this program pring a listing of a file's contents in a veriety of formats.
  each pring consist of an octal byte offset from the start of the file followed by a series of token indicate the contents of the files.
  frequence used option
  -t type
  a named character
  c ASCII character or "blackslash escape"(\n)
  o octal(the default)
  x hexadecimal
  illustrate  od -t o1 file1(the parameter 1 indicate the 1 byte) 

阅读(895) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~