SHARE
TWEET

Untitled

a guest May 26th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Stephan Kuschel, 2019
  4.  
  5. # Works the regex grabbing the printers requires works if computer is set to german. Change sed cmd
  6. # accordingly if this is not the case.
  7.  
  8. lpstat -s | grep null | sed 's#Gerät für \(.*\): ///dev/null#\1#' | xargs -n1 lpadmin -x
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top