In data mar 24 giu 11:58:14, antispammbox-debian ha scritto: > 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?
Certamente! Nelle regexp il punto identifica un qualsiasi carattere ed il dollaro lo àncora alla fine della stringa, per cui... $ echo "https://www.google.it/search?q=12345" | sed 's/.$/X/' https://www.google.it/search?q=1234X Nel sed, al posto della X metti ciò che vuoi (anche più di un carattere, anche niente). -- DaC -- 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/[email protected]

