substring in bash script
Code:
#!/usr/bin/env bash I think it is clear from the code, and i can't explain it in words. I am a beginner, bare with me. Thanks for a hint PS: Do such questions belong here or in the <programming>-section? |
I'd go for the programing section.:)
|
Quote:
btw: i added a slash "${e##*/}"/ which seem to work (but, in my eyes, looks more like a dirty workaround). If someone can confirm that to be a valid solution: i can live with it. |
Setting 'nullglob' expands patterns which do not match any files to the null string, instead of using the literal pattern as an argument.
http://www.gnu.org/software/bash/man...t-Builtin.html Code:
shopt -s nullglob # Set nullglob |
Yes, hurray.
Thanks for the link too. I have to read through it. |
Please mark as SOLVED.
|
how?
Well, ok, seems i had to enable java-script to be able to. |
All times are GMT -5. The time now is 12:59 AM. |