在命令行上键入下面命令即可查看在线帮助(部分内容未列出)
$ fbin --help
fbin - display file with hex format, version 1.0.4
Copyright(C) eyBuild Group, 2005, 2006. All Rights Reserved. http://www.eybuild.com, eybuild@hotmail.com
Usage: fbin [options] [fname [0x][offset] [maxlen] | [file1] ...]
-h --help - show this help
-w[num] - specify word-width [2/4], default 2
-p - pause for every screen
-v - verbose mode
-l - process file list replace 'fname' ...
fname - file name to display
offset - hex number, '0x' is optional.
offset >= 0 from the begining of input file,
offset < 0 from the end of input file
maxlen - max length to print
EXAMPLES:
win2unix -p foo.bin
print at most 64 (0x40) bytes from offset 0x200:
fbin foo.bin 0x200 0x40
print last 32 (0x20) bytes with 4-bytes word-width:
fbin -w4 foo.bin -20
process file list:
fbin -v -l f1 f2 f3 f4 f5 f6
Windos 命令如下命令, 会得到相同结果:
E:\> for /F %I in ('dir /w /b /s /A:-D eybuild\bin') do fbin -w2 -v -l %I | more
(3) win2unix - Windows 与 Unix 文件格式互转换工具
在命令行上键入下面命令即可查看在线帮助(部分内容未列出)
$ win2unix --help
win2unix - translate file between windows and unix format, version 1.0.5
Usage: win2unix [options] [[src] [dst] | [file1] ...]
-h --help - show this help
-r - translate file from unix format to windows
-v - verbose mode
-l - process file list replace 'src' & 'dst' pair
src - source file or dectory
dst - destination file or dectory
EXAMPLES:
win2unix foo.txt
convert unix to windows format:
win2unix -r -b src.txt dst.txt
process file list:
win2unix -v -l f1 f2 f3 f4 f5 f6