>From the man page, it seems one can only give one file argument.

SYNOPSIS
       dlocate [ option ] [ package | string ]

From
$ dlocate --help #Not -? !! Which gets a DIFFERENT programs' Usage.
Usage: dlocate [option] [string...]

So maybe more strings.

# ls /etc/X11/Xresources/
x11-common  xbase-clients  xfree86-common  xlockmore  xlockmore.dpkg-old
# ls /etc/X11/Xresources/*|xargs dlocate
xbase-clients: /etc/X11/Xresources/xbase-clients
xlockmore: /etc/X11/Xresources/xlockmore
# ls /etc/X11/Xresources/*|xargs -n 1 dlocate
x11-common: /etc/X11/Xresources/x11-common
xbase-clients: /etc/X11/Xresources/xbase-clients
xlockmore: /etc/X11/Xresources/xlockmore

So we see that one can give five strings and get two results. But it
is best to give one string five times, giving three results.

dpkg -S is more retrospect:
# ls /etc/X11/Xresources/*|xargs dpkg -S
x11-common: /etc/X11/Xresources/x11-common
xbase-clients: /etc/X11/Xresources/xbase-clients
dpkg: /etc/X11/Xresources/xfree86-common not found.
xlockmore: /etc/X11/Xresources/xlockmore
dpkg: /etc/X11/Xresources/xlockmore.dpkg-old not found.

Wait,
# ls /etc/X11/Xresources/*|xargs dlocate -S
x11-common: /etc/X11/Xresources/x11-common
xbase-clients: /etc/X11/Xresources/xbase-clients
xlockmore: /etc/X11/Xresources/xlockmore

So one should use -S to be sure it doesn't think some are package names?!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to