Im trying to pull all lines that aren't comment lines

(imported topic written by SystemAdmin)

Im trying to pull all lines that “aren’t” comment lines

this pulls only comment lines…

(lines of file “C:\WINDOWS\system32\drivers\etc\lmhosts”) whose (it as string starts with “#”)

(imported comment written by Lee Wei)

How about just using “does not start with”?

(lines of file "C:\WINDOWS\system32\drivers\etc\lmhosts") whose (it as string does not start with "#")

(imported comment written by SystemAdmin)

a little addon to above,

if i wanted to remove any blank lines also ?

how would I format that

(imported comment written by SystemAdmin)

Figured it out… no response required :slight_smile:

(lines of file “/etc/ntp.conf”) whose ((it as string does not start with “#”) and (length of it != 0))