What I would like to do is create a cleaned up copy of the smb.conf file. It has lots of comments (#'s and ;'s) which make reading it and debugging painful. I found this script on the web:
but when I run it in super user mode, the command does not finish, that is it does return to the normal prompt even after 10+ minutes. CTL-c gets me back to the prompt.
Code: Select all
grep -ve ^# -ve ‘^;’ -ve ^$ smb.confcopy> smb.confclean
What am I doing wrong? OS is RASPBIAN .