Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: string starts with ...



Matthias Berndt <berndt.matthias@xxxxxx> writes:

> how can I test if a string starts with '#'?
> I can't find the trick.

[[ $YOURSTRING == \#* ]]

See "Conditional Expressions" in the manual.

-- 
Hannu



Messages sorted by: Reverse Date, Date, Thread, Author