find + regex + files with a pattern

How do I find 2 files that i want? ./test_jkl45.csv and ./test_abc12.csv

$ find . -regextype sed -regex ".*/*.csv"
./test_jkl45.csv
./test_def45.csv
./test_abc12.csv
./test_ghi12.csv

I have tried this but it returns nothing:

$ find . -regextype sed -regex ".*/*(jkl45)|(abc12).csv"

Can anyone clarify the error in my ways?

Answers


It should be:

find -regextype sed -regex '.*\(jkl45\|abc12\).*'

sed is using basic posix regular expressions. Check their documentation here.


Need Your Help

align div aside div to center of table CSS - PHP

php css alignment behind

How to align div aside another div and centralize it in a table?

How to change layout so that it fits a tablet size screen?

android xml

I have tested this app on mobile devices and the layout looks fine but when tested it on a 7 inch tablet the main activity is missing textViews and images,the rest of the activities are fine thoug...