I'm trying to use the find command's regex to match newlines using the dot character. This usually is accomplished via the s
modifier; however, different regex engines have different formats and I can't figure out exactly how to write the regex so that the find command will match newlines. For example, how would I change the following simple command to match all files including those containing newlines in their names:
find /home/user -regex ".*"
I've tried "(?s).*"
, "/.*/s"
, and probably a few others.