Retrieving lines of files and files of folders

In an Analysis I’d like to retrieve the lines of some specific files ("/etc/abc";"/var/234") but also any files in a specific folder ("/opt/blah"). How can I retrieve those specific files and files of folder into a single query?

My query is for Windows but I believe it would be similar
We have a file on some servers with a list of relays (IP adress) for that network. The entries look like this…
relay:1.2.3.4
relay:4.3.2.1

Our query pulls this data like this…

concatenation “%0d%0a” of (unique values of (it as trimmed string) of following texts of firsts “:” of lines containing “relay” of file “pathtofile”)

figured it out.

lines of (files ("/etc/abc";"/var/234");(files of folder ("/opt/blah")))

1 Like