LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Questions on regular expression (https://www.linuxquestions.org/questions/linux-newbie-8/questions-on-regular-expression-166599/)

davidas 04-05-2004 05:45 PM

Questions on regular expression
 
Eg. I have

test++-21.1
test++-2.1
test++-2.2
test++-3.1
test+-4.1

Assume I have a search <regexp> function.

What is the regular expression to search for all test++ files?
What is the regular expression to search for all test++-2.* (DOS-speak) files?

Thanks :)

wiBo 04-05-2004 05:55 PM

ls -l / | grep "test++"


All times are GMT -5. The time now is 12:54 AM.