mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
14 lines
216 B
Bash
Executable File
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
|