This article will grow over time
Definition | Command | |
1 | Remove all comments including empty line (comments with ; and # like in samba.conf) | egrep -v '^[[:space:]]*$|^ *#|^ *;' /etc/samba/smb.conf |
2 | Find all file with some extension and remove it one by one; works for gnu xargs; 0 argument to properly interpret spaces in path name | find . -iname "*.remove" -print0 | xargs -0 -I{} rm -rfv "{}" |
No Comments