John Drescher wrote: > On Feb 4, 2008 5:48 PM, Charles Marcus <[EMAIL PROTECTED]> wrote: >>> Please post your smb.conf without comments. >> Is there a command to generate this output? >> > There probably is a better way but this is the first thing I can think of: > > grep -v ^# /etc/samba/smb.conf > > John
This works pretty well: testparm -s ... as it is formatted in a readable way, even if the smb.conf is messy. Or you can do it this way: grep -v '^[ \t]*[#;]\|^[ \t]*$' /etc/samba/smb.conf ... so you also remove blank lines as well as comments (both # and ;), even with leading whitespace. -- Brian High -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
