mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
216 B
Plaintext
14 lines
216 B
Plaintext
3 years ago
|
#!/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
|