#!/bin/bash

I1=I
I2=("INSTALLED RPMS: SEARCH FOR FILE (rpm)")

function find_file {

    RESULT="`rpm -qf ${FILE}`"

    if  rpm -qf ${FILE} > /dev/null ; then

	msgbox "Found \"${FILE}\" in \"${RESULT}\"\n"

    else

	msgbox "Could not find \"${FILE}\""

    fi

}

function installed_rpms_search_files {

    inputbox "Type name and path of the file"

    FILE=${INPUT}

    exec_command "find_file"

}
