LINUX : Comando tr

()

Comando tr Il comando tr permette di modificare o cancellare caratteri da uno stream di input. Dato ad esempio il file contenente l’elenco precedente, sarà possibile ad esempio sostituire i caratteri newline (accapo) con il carattere “#”, utilizzando il comando in questa forma:

Il comando tr permette di modificare o cancellare caratteri da uno stream di input.
Dato ad esempio il file contenente l’elenco precedente, sarà possibile ad esempio sostituire i caratteri newline (a capo) con il carattere “#”, utilizzando il comando in questa forma:

$ cat elenco_num | tr “\n” “#”
1#2#3#4#5#6#

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

17 views

You may also like

MAIN-COMMANDS-LINUX-2nd PART.
//
4 views
Below is a list of the main Linux commands. A command can have a series of options which are usually indicated with a "-" DF: FREE SPACE ON DISK ...
PRINCIPALI-COMANDI-LINUX-1°PARTE.
5:43
//
7 views
Qui di seguito un elenco dei principali comandi Linux. Un comando può avere una serie di opzioni che solitamente sono indicate con il segno ...
PRINCIPALI-COMANDI-LINUX-2°PARTE.
3:04
//
51 views
Qui di seguito un elenco dei principali comandi Linux. Un comando può avere una serie di opzioni che solitamente sono indicate con il segno "-" ...
Page 2 of 2

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *