在linux下: [root@linux root]# cat tmp 192.168.1.1 [root@linux root]# cut -d . -f 2 tmp 168 在hpux下: test[/chen]cut -d : -f 1,5 /etc/passwd root: daemon: bin: sys: adm: uucp: lp: nuucp: hpdb:ALLBASE nobody: www: mqm:,,, -------------------------------------------------------------------------------- 在linux下: [root@linux root]# awk 'BEGIN {FS="."} { print $1 " " $2 " " $3 " " $4} ' tmp 192 168...
by ignite - HP文档中心 - 2006-11-13 16:47:43 阅读(1336) 回复(0)
名称:cut 使用权限:所有使用者 用法:cut -cnum1-num2 filename 说明:显示每行从开头算起 num1 到 num2 的文字。 范例: shell>;>; cat example test2 this is test1 shell>;>; cut -c0-6 example ## print 开头算起前 6 个字元 test2 this i cut其实很有用 -c m-n 表示显示每一行的第m个字元到第n个字元。例如: ---------file----------- liubi 23 14000 ----...
小弟需要对若干行的内容进行过滤,但苦于这些行比较随意,既没有固定的域、更没有固定的字节排列,只是cq后面的6个数值是我的目标,请帮个大忙,谢谢! 如: asd dasdsdasd cqXXXXXX adasda adsda cqXXXXXX sdjhjk sad asda cqXXXXXX shkj jyiwegj
http://hpux.ewi.tudelft.nl/ftp/hpux/Sysadmin/tusc-7.9/ 上下载需要的版本 swinstall -s 绝对路径 \* 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/18578/showart_1083647.html
我想找非g打头的文件,使用如下格式: find . -name '[^g]*' 但结果找到仍是g打头的文件。 HP-UX B.11.11 U 而在cygwin下测试是没问题的。