Re: bash: how to check if first character of string is "/"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Meier wrote:
How about using Bash substring expansion:

     if [ "x${VAR:0:1}" = "x" ] ; then ...

Oops: Sorry for the noise. I missed the earlier replies.....



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux