diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-10-11 15:05:32 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-10-11 15:05:32 -0400 |
| commit | b5f1684628e292d44ca00921900402258422b227 (patch) | |
| tree | ea1532e0f68ed3ae2406562ae4e03359e0f7cc26 /functions.sh | |
| parent | 7c22f7a4006e2cf154a301529aa8b93fce42f735 (diff) | |
| download | swipeGuess-b5f1684628e292d44ca00921900402258422b227.tar.gz | |
make method to split file into multiple files based on first and last letters
Diffstat (limited to 'functions.sh')
| -rw-r--r-- | functions.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh new file mode 100644 index 0000000..440219b --- /dev/null +++ b/functions.sh @@ -0,0 +1,6 @@ +firstLetter(){ + echo "$1"|grep -o '^.' +} +lastLetter(){ + echo "$1"|grep -o '.$' +} |
