bash-utils/README.md

53 lines
448 B
Markdown
Raw Permalink Normal View History

2017-05-25 12:24:28 +00:00
# bash-utils
Just a couple bash utilities
2017-05-25 12:38:40 +00:00
a2b - Convert Ascii to Binary
=============================
```
2017-05-25 12:41:25 +00:00
Usage:
2017-05-25 12:40:35 +00:00
a2b H e l l o
2017-05-25 12:40:35 +00:00
2017-05-25 12:41:25 +00:00
Output:
2017-05-25 12:40:35 +00:00
01001000
01100101
01101100
01101100
01101111
```
2017-05-25 12:38:40 +00:00
a2h - Convert Ascii to Hex
==========================
```
2017-05-25 12:41:25 +00:00
Usage:
2017-05-25 12:40:35 +00:00
a2h H e l l o
2017-05-25 12:40:35 +00:00
2017-05-25 12:41:25 +00:00
Output:
2017-05-25 12:40:35 +00:00
48
65
6c
6c
6f
```
2017-05-25 12:38:40 +00:00
h2a - Convert Hex to Ascii
==========================
```
2017-05-25 12:41:25 +00:00
Usage:
2017-05-25 12:40:35 +00:00
h2a 48 65 6c 6c 6f
2017-05-25 12:40:35 +00:00
- or -
h2a 0x48 0x65 0x6c 0x6c 0x6f
2017-05-25 12:41:25 +00:00
Output:
2017-05-25 12:40:35 +00:00
H e l l o
```