Linux commands
count words
echo -n text | wc -m >> 4
使ってみているものたち
create directory and create file
$ mkdir -p example_dir && echo "Hello, world!" > example_dir/example.txt
hex to bit
$ echo "1F" | xxd -r -p | xxd -b
bin to hex
Stream log
less
末尾から読みたい
cat ならぬ tac コマンドと組み合わせる
$ tac hoge.log | less