I got the following variable:
set location "America/New_York"
and want to display only the part before / (slash) using fish shell syntax .
Expected Result
America
Bash equivalent
Using bash, I just used the parameter extension:
location="America/New_York" echo ${location
Question
How to do it in fish -way?
source share