initial commit
This commit is contained in:
12
bash/two-fer/two_fer.sh
Executable file
12
bash/two-fer/two_fer.sh
Executable 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."
|
Reference in New Issue
Block a user