|
grattage gratuit
loterie gratuite
casino gratuit
quizz gratuit
pari gratuit
jeu de pronostic
tirage au sort
jeux de hasard
tombola gratuite
jeux en flash
jeu en réseau
jeu de stratégie
jeux TV
multi jeux
concours gratuit
|
tail
Affiche les 10 dernières lignes du
fichier ( option par défaut ).
voir les options
tail nom_fichier tail -5 doc.txt affiche
les 5 dernières lignes du fichier doc.txt
tail +5 doc.txt affiche de la cinquième
à la dernière ligne du fichier doc.txt
tail est antagoniste à
la commande head,
ils ont les mêmes options.
Exemples :
Affiche le contenu du fichier listerep en numérotant
les lignes.
[cr@localhost local]# cat
-n listerep.txt
1 StarOffice/ 2 alsa-utils-0.5.7/ 3 bin/ 4 blender/ 5 doc/
6 etc/ 7 forte4j/ 8 games/ 9 info/ 10 jdk1.2.2/ 11 lib/
12 linux/ 13 listerep.txt 14 man/ 15 mozilla/ 16 progs/
17 sbin/ 18 sciences/ 19 sql/ 20 src/ 21 tennis/ [cr@localhost
local]#
[cr@localhost local]# tail -5 listerep.txt
sbin/
sciences/ sql/ src/ tennis/ [cr@localhost local]#
[cr@localhost
local]# tail +5 listerep.txt doc/
etc/ forte4j/ games/ info/ jdk1.2.2/ lib/ linux/ listerep.txt man/ mozilla/ progs/
sbin/ sciences/ sql/ src/ tennis/
[cr@localhost local]#
Mode bavard avec l'option -v affiche
le nom du fichier :
==> fichier.txt <== et les 10
premières lignes
[cr@localhost linux]$ tail -v fichier.txt
==> fichier.txt <==
rmdir.txt
su.txt
tar.txt
tty.txt
umask000.txt
umask022.txt
umask111.txt
umask.txt
who.txt
write.txt
[cr@localhost linux]$
Affiche les 5 derniers caractères
( octets) du fichier.txt
[cr@localhost linux]$ tail -c5 listerep.txt
nnis/
[cr@localhost linux]$
|
|