cmd "tac" inversion des lignes
La commande tac inverse les linges d'un fichier.
ex:
$ echo carotte > fichier.txt
$ echo patate >> fichier.txt
$ echo tomate >> fichier.txt
$ echo radie >> fichier.txt
$ cat fichier.txt
carotte
patate
tomate
radie
$ cat fichier.txt | tac
radie
tomate
patate
carotte
ex:
$ echo carotte > fichier.txt
$ echo patate >> fichier.txt
$ echo tomate >> fichier.txt
$ echo radie >> fichier.txt
$ cat fichier.txt
carotte
patate
tomate
radie
$ cat fichier.txt | tac
radie
tomate
patate
carotte
Publicité