Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Stephan Kuschel, 2019
- # Works the regex grabbing the printers requires works if computer is set to german. Change sed cmd
- # accordingly if this is not the case.
- lpstat -s | grep null | sed 's#Gerät für \(.*\): ///dev/null#\1#' | xargs -n1 lpadmin -x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement