Re: URL to source file
> #! /bin/zsh
>
> file-url () {
> local debian=https://sources.debian.org/src
> local pack=$1
> local ver=$(aptitude show units | grep '^Version: ' | awk '{print $2}')
> local file=$2
> local url=$debian/$pack/$ver/$file
> echo $url
> } # [1]
>
> [1] https://dataswamp.org/~incal/conf/.zsh/apt lines 168-175
Oh, forgot the awk + grep trick :)
file-url () {
local debian=https://sources.debian.org/src
local pack=$1
local ver=$(aptitude show units | awk '/Version/{print $2}')
local file=$2
local url=$debian/$pack/$ver/$file
echo $url
}
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
Reply to: