rwxrob-dot/scripts/protonum

14 lines
216 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/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