linux - What does the dot sign mean in the command -


i not familiar linux command line stuff. need find files suffix '.fvp' under directory , sub-directories. got online, works fine. didn't quite understand means. command line follows:

ls -r | grep '.*[.]fvp' 

i know -r option listing recursively , pipe redirecting. why in single quote, there dot before asterisk , dot within brace. , whey not '*.fvp'?

thank you!

@grep uses regular expression (regex) syntax opposes glob syntax may used to. *.fvp glob expression trying do, regexes, different.

. in regex matches single character. * means amount of preceding character. so, .* means character 0 or more times. [.] means, marc b said, literal period, because . means else.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -