You are not logged in.
Pages: 1
function pacfind()
{
LOCATION=`whereis $1 |awk -F " " '{ print $2 }'`
echo "Finding what owns ${LOCATION}..."
pacman -Qo ${LOCATION}
}
Thought of it today, and thought maybe it would be useful for someone.
syntax: pacfind name_of_file
The only real limititation is that it will find bins and libs first (because that's what 'whereis' lists first.
·¬»· i am shadowhand, powered by webfaction
Offline
whereis $1|cut -f2 -d':'| xargs pacman -Qo
faster and shows all matching files
Offline
Offline
heh, owned
:cry:
·¬»· i am shadowhand, powered by webfaction
Offline
phrakture wrote:heh, owned
:cry:
so mayby we should change the function name?
pacowned? pacown?
function pacowned()
{
whereis $1|cut -f2 -d':'| xargs pacman -Qo
}
Offline
Lol, owned². Sorry, shadowhand.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
heh, owned
LOL!
Way to kick a man in the crotch
.oO Komodo Dave Oo.
Offline
Pages: 1