• [^] # Re: retour chariot

    Posté par . En réponse au message enlever les fins de ligne du résultat de curl. Évalué à 1. Dernière modification le 16 mai 2014 à 14:40.

    var='{"CorrelationID":"test","MessageResponse":[
    {"ResponseCode":4,"ResponseComment":"LineColor too long, it will be truncated"},
    {"ResponseCode":0,"ResponseComment":"success"}]'
    echo "`{mathjax} {var//`'\n'/}"
    {"CorrelationID":"test","MessageResponse":[{"ResponseCode":4,"ResponseComment":"LineColor too long, it will be truncated"},{"ResponseCode":0,"ResponseComment":"success"}]```
    :)
    ¿ mathjax ? kesako ? il faut lire `echo "${var//$'\n'/}"`