diff --git a/ver b/ver index 2c46f58..1bf237e 100755 --- a/ver +++ b/ver @@ -1,3 +1,4 @@ #!/bin/bash -apt-cache policy $1 | awk 'NR==5' -apt-cache policy $1 | awk 'NR==5' | xclip -selection clipboard +version=$(apt-cache show $1 | grep Version | awk '{print $2}') +echo $1 $version +echo $1 $version | xclip -select clipboard