- 博客(13)
- 收藏
- 关注
转载 java servlet specification v2.2
Table Of Contents Who Should Read This Specification 8 API Reference 8 Other Jav
2004-09-27 17:11:00 2417
原创 AWK 介绍
AWK 介绍 如果要格式化报文或从一个大的文本文件中抽取数据包,那么a w k可以完成这些任务。它 在文本浏览和数据的熟练使用上性能优异。 整体来说, a w k是所有s h e l l过滤工具中最难掌握的,不知道为什么,也许是其复杂的语法 或含义不明确的错误提示信息。在学习a w k语言过程中,就会慢慢掌握诸如Bailing out 和 a w k : c m d . L i n e :等错误信
2004-09-27 09:10:00 2906
原创 awk:the most powerful utility tool in shell world.
1) FORMAT: awk pattern filename awk {action} filename awk pattern {action} filename(a) awk /Sally/ {print $1} filename(b) ls -l |awk $1
2004-09-24 10:15:00 829
原创 split
s p l i t命令一般格式:split -output_file-size input-filename output-filename这里o u t p u t - f i l e - s i z e指的是文本文件被分割的行数。s p l i t查看文件时,o u t p u t - f i l e - s i z e选项指定将文件按每个最多1 0 0 0行分割。如果有个文件有2 8 0 0
2004-09-20 10:58:00 772
原创 cut
cut [options] file1 file2下面介绍其可用选项:-c list 指定剪切字符数。-f field 指定剪切域数。-d 指定与空格和t a b键不同的域分隔符。- c用来指定剪切范围,如下所示:- c 1,5-7 剪切第1个字符,然后是第5到第7个字符。-c1-50 剪切前5 0个字符。-f 格式与- c相同。-f 1,5 剪切第1域,第5域。- f 1,10-12 剪切第1域
2004-09-20 10:56:00 766
原创 join
其一般格式为:join [options] input-file1 input-file2an n 为一数字,用于连接时从文件n中显示不匹配行。例如, - a 1显示第一个文件的不匹配行,- a 2为从第二个文件中显示不匹配行。o n.m n为文件号,m为域号。1 . 3表示只显示文件1第三域,每个n,m必须用逗号分隔,如1 . 3,2 . 1。j n m n为文件号,m为域号。使用其他域
2004-09-20 10:55:00 799
原创 uniq
命令一般格式:uniq -u d c -f inputfile outputfile其选项含义:-u 只显示不重复行。-d 只显示有重复数据行,每种重复行只显示其中一行-c 打印每一重复行出现次数。-f n为数字,前n个域被忽略。一些系统不识别- f选项,这时替代使用- n。
2004-09-20 10:51:00 761
原创 sort
s o r t命令的一般格式为:sort -cmu -o output_file [other options] +pos1 +pos2 input_files下面简要介绍一下s o r t的参数:-c 测试文件是否已经分类。-m 合并两个分类文件。-u 删除所有复制行。-o 存储s o r t结果的输出文件名。其他选项有:-b 使用域进行分类时,忽略第一个空格。-n 指定分类是域上的数字分类
2004-09-20 10:48:00 790
原创 sed, a Streamlined Editor.
preface:Sed is a streamlined noninteractive editor.It can edit a file or data, and it just modify the output, but not modify the originally files.Format of sed: $sed command filename.Command Fun
2004-09-20 10:23:00 876
原创 grep
1)$ grep -n ^south datafile 3:southwest SW Lewis Dalsass 2.72)$ grep -i pat datafile Pat Huang yuanxiao ps: The -i option turns off case se
2004-09-20 10:00:00 807
原创 regular expression
//simple and useful.^ :begainning of a line. :/^love/$ :end of a line. :/love$/;/^$/. :matches one character. :/l..e/* :mat
2004-09-20 09:39:00 1068
原创 The first article of shell.
This Days, i will post some articles for shell tools, as awk... sort... wc... tr... sed... I want to make a db of shells utility tools!And the data are from some books and websites, and every rig
2004-09-19 15:02:00 803
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人