Unix Common Command Index (REV,PASTE,JOIN,TR,BC,READELF,STRINGS,XXD)

Source: Internet
Author: User

Rev

Rev file

For each line that is read in, the result is output in reverse

Paste

paste [options] files takes each file in a row and joins them together with the tab (default) to compose a new line.

The-D list does not use the default tab, but instead uses the characters in the list to connect each row individually. The list can be one or more \n,\t,\\ or a, and each character is used one character at a time.

-S connects each line in a single input file (using the default tab or-D specified character), and then joins the individual files in the file list with a newline character.

-Placed in the files list, representing the standard input

Join

Join [options] file1 file2

-A File_number File_number can be 1 or 2 if a row that does not join is also printed

-V File_number file_number can be 1 or 2 if

-e string uses string to replace empty domain

-T Char char is a field separator in two files.

-1 field_number fields requiring join are located at Field_number of File1

-2 field_number fields requiring join are located at Field_number of File2

-O List

TR

-D Dilimiter Delete the part after delimiter

BC

echo "ibase=2;obase=10000; Binary "|BC-convert binary to 16 binary (10000_b=16_d)

Readelf

Strings

Look for an ASCII string with a length greater than 4 in the binary file. For object file, do not find the text segment, but search all byte for other files.

-A To object file also searches the text segment

-Search each byte for both normal and object files

--Treat each remaining parameter as a file name

-O for each ASCII string found, output its offset at the same time.

-T [d|o|x] output offset using decimal (d)/eight binary (o)/16 binary (x)

-number/-N Number the default shortest string length is 4, where you can customize the shortest length (strings less than that length are not output).

Tail

-N number only outputs the last number line

Xxd

xxd [Options] [infile [outfile]] converts binary to hexdump format output. Example

# echo ABCdef | Xxd

0000000:6162 6364 6566 0a abcdef.

-C number Specifies that there is a number column (number bytes) for each row

-P uses the pure Hexdump format for input (with the-r option required for input)/output. (The format does not have the preceding line number, no columns, no ASCII column, only hex)

-B converts to binary dump instead of hexdump.

-R Converts the results of hexdump into binary backwards.

Unix Common Command Index (REV,PASTE,JOIN,TR,BC,READELF,STRINGS,XXD)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.