fd

Functions

int main(int argc, char *argv[])

fd [ option ] [ infile ]

  • -s int

    • start index length \((0 \le S)\)

  • -c int

    • number of columns \((1 \le N)\)

  • -o int

    • address format

      • 0 none

      • 1 hexadecimal

      • 2 decimal

      • 3 octal

  • infile str

    • data sequence

  • stdout

    • dumped data sequence

This command converts data from infile (or standard input) to a human readable multi-column form, and sends the result to standard output.

The below example displays the speech data in sample.wav with the corresponding addresses.

fd -o 1 sample.wav
# 000000  52 49 46 46 5e 9d 05 00 57 41 56 45 66 6d 74 20 |RIFF^...WAVEfmt |
# 000010  10 00 00 00 01 00 01 00 22 56 00 00 44 ac 00 00 |........"V..D...|
# 000020  02 00 10 00 64 61 74 61 3a 9d 05 00 05 00 03 00 |....data:.......|
Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

dmp