what does this regular expression do?
what does this do? :
Code:
[U|LI]N[U|I]X |
Well....
It depends on how it is used---right? What is it supposed to do? |
i really dont know
i found it when i digging thru my harddrive |
What does this mean?:
[U|LI] and how is it different from?: [ULI] |
Isn't | the operator that matches either argument?
[LI|U]N - would match LIN or UN [I|U]X - IX or UX If I'm not mistaken, this search pattern would match either LINUX or UNIX |
And LINIX and UNUX :)
|
Quote:
|
thank you
its anoying to come by somthing but nnot know what it does |
Quote:
|
Actually, it's even worse than that. Pixellany was right.
Code:
[U|LI]N It would match any word that contains the capital letter U or L or I followed by N. The same goes for the second part of the pattern. For example, it would match: ADFAEDUNFAFAFDDIX, etc. |
Code:
bash-3.1$ ls | grep -E '[LI|U]N[U|I]X' |
All times are GMT -5. The time now is 12:08 AM. |