rwxrob-dot/scripts/protonum
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

14 lines
216 B
Bash
Executable File

#!/usr/bin/env bash
declare -i count=1
while IFS= read line; do
if [[ ! $line =~ = ]];then
echo "$line"
continue
fi
pre=${line%%=*}
suf=${line#*;}
echo "${pre}= ${count}; ${suf}"
count+=1
done