免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 608 | 回复: 0
打印 上一主题 下一主题

linux下的 cut join and od command [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-23 15:59 |只看该作者 |倒序浏览

                               
               
                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)  
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/45689/showart_366127.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP