mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
16 lines
283 B
Bash
Executable File
16 lines
283 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
_trim() {
|
|
local it="${1#"${1%%[![:space:]]*}"}"
|
|
echo -e "${it%"${it##*[![:space:]]}"}"
|
|
}
|
|
|
|
while IFS= read -r name; do
|
|
name=$(_trim "$name")
|
|
[[ -z "$name" ]] && continue
|
|
name=${name^}
|
|
printf "\t%s() string\n\tSet%s(v string)\n" "$name" "$name"
|
|
done
|
|
|
|
|