dimanche 1 mars 2015

Split a string in shell scripting explaination

I want to extract the directory. I have used the below mentioned shell script.



line='create word=/some/directory/name'
dir=${${${line##*=}#"'"}%"'"}


Though, it is working for me, I want to know the working of the 2nd line. How exactly string split occur in the shell scripting.


Aucun commentaire:

Enregistrer un commentaire