I have a bash file:
agro_233_720
Inside this bash script I would like to use as variables the part's of it's name that underscore delimitates:
name= agro
ip= 233
resolution= 720
How can I get them ?
I tried to write:
name=`basename "$0"`
but it outputs the hole name (agro_233_720)
Thank you!