jdd wrote: > Le 22/03/2017 à 01:38, Julian H. Stacey a écrit : > > "Hirayama, Pat" wrote: > >> I think that config_list is what you want: > >> config_list -o list1config list1 > >> config_list -o list2config list2 > >> diff list1config list2config > > Thanks to jdd for asking, & Pat for answering, > > I too am using this to debug a troublesome list list. > and if you want to get rid of comments > http://dodin.info/wiki/pmwiki.php?n=Doc.AfficherUnFichierSansLesCommentaires
Thanks, Contains: cat /etc/sysconfig/cron | egrep -v "^[[:space:]]*$|^#" egrep -v "^$|^#" file Testing with csh, " was not delimiting (Illegal variable name) so ' cat /etc/crontab | egrep -v '^[[:space:]]*$|^#' I tried to get an ideally short RE but man egrep is terse, & lacks examples: https://www.freebsd.org/cgi/man.cgi?query=egrep&apropos=0&sektion=0&manpath=FreeBSD+11.0-RELEASE+and+Ports&arch=default&format=html cd /usr/local/mailman/lists config_list -o - bg | egrep -v '^[[:space:]]*#|^$' # OK, but not ideal config_list -o - bg | egrep -v '^[[:space:]]*#|$' # Empty. config_list -o - bg | egrep -v '^[[:space:]]*[#$]' # Blank lines remain. config_list -o - bg | egrep -v '^[[:space:]]*[#$]|^$' # OK config_list -o - bg | egrep -v '^[[:space:]]{0,}[#$]' # Blank lines remain. Does some other Unix have a better worded or more verbose RE definition, more examples ? Cheers, Julian -- Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable. http://berklix.eu/brexit/#stolen_votes http://berklix.eu/brexit/#eu_passports
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org