• [^] # Re: Finalement peut-être...

    Posté par . En réponse au message Insérer une variable dans un lien sur shell. Évalué à 1. Dernière modification le 17 janvier 2019 à 01:41.

    tu peut faire ça comme test

    nomFichier=wget -q -O- --trust-server-names "http://dreamosat.net/oscam/index.php?&direction=1&order=nom&directory=1.20_TRUNK/arm_dm900-solo4k" | sed -n '0,/.*downloadfile/s/.*filename=\(oscam-svn.*tar.gz\)&.*/1円/p'
    wget -q -O- --trust-server-names "http://oscam.dreamosat.net/index.php?action=downloadfile&filename=$nomFichier&directory=1.20_TRUNK/arm_dm900-solo4k&" | tar -xOz > /tmp/oscam
    

    https://i.imgur.com/jr8bxlX.png?1