Add a load of handy ~/bin scripts

This commit is contained in:
2020-02-23 15:07:02 +01:00
parent 99fbfc42fe
commit 8032cee29c
13 changed files with 323 additions and 0 deletions

8
bin/randmac Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
_max=${1:-6}
for i in $(seq $_max) ; do
printf '%02X' $[RANDOM%256]
(( $i != $_max )) && printf ':'
done
printf '\n'