@black3dynamite said in Unix Command line - Printer Details:

@DustinB3403 said in Unix Command line - Printer Details:

Here is the completed command.

lpoptions -p <NAME> | grep -o "printer-make-and-model='Your Printer make and Model"

That outputs the exact detail I needed!

lpoptions -p SHCSL_209_ColorPrinter | sed -r "s/^.*(printer-make-and-model.*)'.*$/\1/g; s/'//g; s/printer-make-and-model=//g"

This will remove all the unnecessary text, printer-make-and-model=, and the single quotes.

Yeah I'm also able to just use lpoptions -p SHCSL_209_ColorPrinter | grep "'SHCSL_209_ColorPrinter'" and get what I need in a single line response.