Following on from the previous receipe: Bash, looping over stdin, here is a better method:
[code]
sudo pdbedit -L | cut -f1 -d: | grep -v nic | xargs -n1 sudo pdbedit -x
[/code]
Remove all entries except for “nic”.
April 12th, 2006 | Tech
Following on from the previous receipe: Bash, looping over stdin, here is a better method:
[code]
sudo pdbedit -L | cut -f1 -d: | grep -v nic | xargs -n1 sudo pdbedit -x
[/code]
Remove all entries except for “nic”.
1 comment so far ↓
Thanks for the snippet, I tried creating my own command with xargs to get it emptied but that didn't work.
Leave a Comment