You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm a beginner in shell and I have theese two lines of code :
$ echo ${PATH%%:}
$ echo ${PATH#:}
I know that the first line prints the first directory of the PATH variable
and the second one prints the rest of the directories in PATH.
But i don't understand the parts of code inside the curly brackets and how does it work .
can I get help please !?
The text was updated successfully, but these errors were encountered:
Hi, I'm a beginner in shell and I have theese two lines of code :
$ echo ${PATH%%:}
$ echo ${PATH#:}
I know that the first line prints the first directory of the PATH variable
and the second one prints the rest of the directories in PATH.
But i don't understand the parts of code inside the curly brackets and how does it work .
can I get help please !?
The text was updated successfully, but these errors were encountered: