51 lines
457 B
Markdown
51 lines
457 B
Markdown
# bash-utils
|
|
|
|
Just a couple bash utilities
|
|
|
|
a2b - Convert Ascii to Binary
|
|
=============================
|
|
Usage
|
|
-----
|
|
```
|
|
a2b H e l l o
|
|
```
|
|
Output
|
|
------
|
|
```
|
|
01001000
|
|
01100101
|
|
01101100
|
|
01101100
|
|
01101111
|
|
```
|
|
|
|
a2h - Convert Ascii to Hex
|
|
==========================
|
|
Usage
|
|
-----
|
|
```
|
|
a2h H e l l o
|
|
```
|
|
Output
|
|
------
|
|
```
|
|
48
|
|
65
|
|
6c
|
|
6c
|
|
6f
|
|
```
|
|
|
|
h2a - Convert Hex to Ascii
|
|
==========================
|
|
Usage
|
|
-----
|
|
```
|
|
h2a 48 65 6c 6c 6f
|
|
```
|
|
Output
|
|
------
|
|
```
|
|
H e l l o
|
|
```
|