Skip to content

Instantly share code, notes, and snippets.

@spudtrooper
Created August 18, 2011 15:58
Show Gist options
  • Select an option

  • Save spudtrooper/1154386 to your computer and use it in GitHub Desktop.

Select an option

Save spudtrooper/1154386 to your computer and use it in GitHub Desktop.
Print possible printer ports
#!/bin/sh
awk -F/ '/tcp.*print|print.*tcp/ {gsub(/.*[ \t]/,"",$1); print $1}' /etc/services
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment