How to check the first character in a string in unix
I'm writing a script in unix where I have to check whether the first
character in a string is "/" and if it is, branch.
for example I have a string
/some/directory/file
I want this to return 1
and
server@10.200.200.20:/some/directory/file
this to return 0
how can I proceed to do this?
No comments:
Post a Comment