mirror of
https://github.com/rwxrob/dot
synced 2024-11-16 21:25:29 +00:00
14 lines
216 B
Plaintext
14 lines
216 B
Plaintext
|
#!/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
|