# Get function list as array
funcs=($(declare -F -p | cut -d " " -f 3))
# parse out functions and non-functions
i=1
declare -a cmdargs
declare -a otherargs
for var in "$@"; do
if [[ " ${funcs[@]} " =~ " ${var} " ]]; then
cmdargs[i]=${var}
else
otherargs[i]=${var}
fi
((i++))
done
echo ${cmdarg[*]}
echo ${otherargs[*]}
Camera advice: a film camera for a novice
A friend of mine sent me a question about a good film camera to get started with: My partner has been thinking for some time about her first camera and she likes the idea of film photography. Her birthday is coming up and I’m thinking of buying a camera as a surprise gift to bring […] » about 800 words