[JB007@mac901 ~]$ ./VerifyConf.sh
grep: =: No such file or directory
grep: yes: No such file or directory
# are added to this list then the option [script-filtering]script-filter
[script-filtering]
script-filter = yes
# When script-filter is set to yes, enabling this flag will rewrite
# are added to this list then the option [script-filtering]script-filter
[script-filtering]
script-filter = yes
# When script-filter is set to yes, enabling this flag will rewrite
grep: =: No such file or directory
grep: yes: No such file or directory
# user-and-group-in-same-suffix
user-and-group-in-same-suffix = yes
# user-and-group-in-same-suffix
user-and-group-in-same-suffix = yes
grep: =: No such file or directory
Im trying to just get the output without the lines having the "#"
I am not sure how you are okay with all those error messages strewn all around. If you want to search for the exact string "script-filter = yes" in *.conf then you may want to enclose it within quotes:
If you want to find out lines that have "script-filter = yes" anywhere in the line, as long as the line does not start with "#", then you could do something like: