Files
Android-nRF-Toolbox/moustache/split.sh
Sylwester Zieliński 9cdd253efc Add github actions
2022-01-31 10:24:37 +01:00

9 lines
172 B
Bash
Executable File

#!/bin/bash
str="$1"
IFS='%' # space is set as delimiter
read -ra ADDR <<< "$str" # str is read into an array as tokens separated by IFS
echo "${ADDR[0]}"