#!/bin/bash version=$(apt-cache show $1 | grep Version | awk '{print $2}') echo $1 $version echo $1 $version | xclip -select clipboard