url="http://www.foo.bar/a/b/x";

new_char="C"

printf '%s' "$url" | sed -e s/'.$'/"${new_char}"/1

# OUTPUT:

http://www.foo.bar/a/b/C

Il 24 giugno 2014 11:58, antispammbox-debian
<[email protected]> ha scritto:
>
>
> Salve a tutti
>
> Ho un Url di un sito internet,  devo cambiare l'ultimo carattere a dx
> dell'Url stèsso e non sò che carattere sia.
>
> È possibile con Sed o Awk?
>
> Gràzie
>
> Ciao
>
>
>
>
>
>
> --
> Per REVOCARE l'iscrizione alla lista, inviare un email a
> [email protected] con oggetto "unsubscribe". Per
> problemi inviare un email in INGLESE a [email protected]
>
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
> Archive: https://lists.debian.org/B5DC8DEFD255483DB13B502E2EE08B7B@rx
>



-- 
Bi e a, bi e e, ba be, bi e i, ba be bi, bi e o, ba be bi bo
bi e u, bu, ba be bi bo bu
Ci e a, ci e e, ca ce, ci e i, ca ce ci, ci e o, ca ce ci co
ci e u, cu, ca ce ci co cu


--
Per REVOCARE l'iscrizione alla lista, inviare un email a
[email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/CAKPgDDjLTQKhkRSnx7MUToTegTTtnWu41iLgACRf1n�[email protected]

Rispondere a