- 论坛徽章:
- 0
|
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 |
|