#!/bin/bash function print_usage { cat << EOM; LVU -- Lunar View utility (for viewing just about everything in Lunar-Linux) Usage: lvu [general options] [command [command parameters]] Commands: Invoke lvu with desired command followed by arguments. Please note that anything in brackets [ ] is optional. Command Arguments Description what module display a module's description info module display detailed info about a module search module search a module installed list installed modules install module list files installed by the module website module show website of the module EOM } case "$1" in info) #apt-cache show $2 ;; dpkg -s $2 ;; search) apt-cache search $2 ;; installed) dpkg -l ;; install) dpkg-query --listfiles $2 | less;; website) apt-cache show $2 | grep Homepage | head -n 1 | cut -d" " -f2 ;; *) print_usage ;; esac