Linux bash; manipulate PATH type var – Debian
Linux debian bash. I have a PATH type variable 'X' that I want to manipulate. 'X' can be any number of elements delimited by ":" For example, using fruits: set X=apple:pear:orange:cherry How might I extract the first element minus its…