initial commit

This commit is contained in:
2021-08-08 21:11:22 +02:00
commit fe7136d801
130 changed files with 6858 additions and 0 deletions

12
bash/two-fer/two_fer.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
#str=$1
# the next two lines would trim leading & trailing blank chars. I believe the exercise
# should be amended to avoid "One for , one for me."
#str="${str#"${str%%[![:space:]]*}"}" # remove leading blanks
#str="${str%"${str##*[![:space:]]}"}" # remove trailing blanks
#[[ ${#str} = 0 ]] && str="you"
echo "One for ${1:-you}, one for me."