[sane-devel] Question on scanimage -f
abel deuring
adeuring at gmx.net
Sun May 25 00:00:23 UTC 2008
On 23.05.2008 20:45, Dieter Jurzitza wrote:
> Dear listmembers,
> having two scanners attached to my system I get calling scanimage -L
> <SCANNER1>
> <SCANNER2>
>
> choosing the appropriate command sequence with scanimage -f I can get the very
> same result, except it looks like
> <SCANNER1><SCANNER2>
>
> is there any hidden way to force scanimage -f "<commandset>" to put it's
> entries into separate lines so you can easily grep for a certain scanner? I
> can do some sed-tweaking, but it is much more cumbersome than if I had all in
> two separate lines.
>
> Maybe I overlooked something, but adding a "\n" does not work.
Simply write something like
scanimage -f "%i %d
"
i.e., use quotation marks and put the second quotation mark into a new
line :) That should work at least for bash.
Abel
More information about the sane-devel
mailing list