Simple Sand Samples |
Bash > バイナリデータをファイルへ書き込む
write-bin.bash
echo -ne "\x1\x2\x3" > $1
$ source write-bin.bash hoge.bin
$ od -tx1 hoge.bin
0000000 01 02 03
0000003
$
$ od -tx1 hoge.bin
0000000 01 02 03
0000003
$
Simple Sand Samples |
echo -ne "\x1\x2\x3" > $1