I have:
/var/cache/pacman/pkg/vim-runtime-7.3.754-1-x86_64.pkg.tar.xz
/var/cache/pacman/pkg/vim-7.3.918-2-x86_64.pkg.tar.xz
Format is:
cachedir package packageVersion packageRelease architecture extesnion
/var/cache/pacman/pkg/ vim-runtime 7.3.754 1 x86_64 pkg.tar.xz
/var/cache/pacman/pkg/ vim 7.3.918 2 x86_64 pkg.tar.xz
So Id like to end up with being able to extract any on of those from the original string *Packages can have hyphens in their name
Any help would be appretiated