You are welcome!
In the past I was able to find a file which listed all the data like page width, left margin, etc, etc, for each setting of each printer and was able to edit that to correct an error. I've searched all the epson related files in ..../source/driver/ and not been able to find this file again.
I'm a neophite with grep, all I've been able to do is to search an individual file for NX200 (my printer) and not find it!. What I'd like to be able to do is to search all files in a folder for NX200 in them (not just the files names, the contents.). Is there a way to do that?
The problem is that the files in ..../source/driver/ are compressed (gzipped) files, so the grep command does not work (at least as is
). The grep syntax is very simple:
grep string file(s)
So, if you want to find the string NX200 in the files in the .../source/driver folder you chdir in that folder (command cd .../source/driver
) and then issue the command
grep NX200 *
Unfortunately, in this way you miss the files containing nx200... so the trick is to use the -i (insensitive) flag, so all occurences of NX200, nx200, Nx200,... will be found:
grep -i nx200 *
So, returning to your problem, because the files are of the form ...ppd.gz then grep will not work. The solution should be to uncompress them (with gunzip
), perform the search with grep, and then compress them back (with gzip
) (there is a way to do this in one line command, but this is above your pay grade...
But maybe I found a solution. Looking on my system I found that the definition files (ppd files) of the installed printers are in /etc/cups/ppd Try to give a look there, and if you find a file named as your printer queue, that should be the one to edit.
Even better, did you give a try to the lpoptions
command (help via man lpoptions
)? This is a command that does what you are looking for, without all the fuss of knowing where the files are...
Hope this helps.