mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
21 lines
194 B
Bash
Executable File
21 lines
194 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: $0 <serial>";
|
|
exit;
|
|
fi
|
|
|
|
orig=$1
|
|
serial=""
|
|
|
|
i=${#orig}
|
|
|
|
while [ $i -gt 0 ]
|
|
do
|
|
i=$(($i-2));
|
|
serial="$serial${orig:$i:2}-"
|
|
done
|
|
|
|
|
|
echo $serial"00"
|