2 ms·
Always reaching for this munging strings in Github Actions (bash): MY_STR=$(awk -F'/' '{print $2}' <<< "$FROM") Where -F could be a comma or other delimiter
by turtleyacht 3y ago
Always reaching for this munging strings in Github Actions (bash):
MY_STR=$(awk -F'/' '{print $2}' <<< "$FROM")
Where -F could be a comma or other delimiter, printing 1-based field index.