|
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
|
head nom_fichier1 nom_fichier2
voir les options
Affiche la première partie
(10 premières lignes par défaut) de chacun des fichiers mentionnés.
head est antagoniste à
la commande tail
,ils ont les mêmes options.
Exemples :
head nom_fichier1 nom_fichier2 ...
head -c 20 doc.txt affiche les 20 premières caractères
du fichier doc.txt.
head -n 15 doc.txt affiche les 15 premières lignes
du fichiers doc.txt.
Afficher les 3 premières lignes de fichier.txt
[cr@localhost linux]$ head -3 fichier.txt
access.txt ark.txt
bash.txt
Afficher les 2 premières lignes
de fichier.txt
[cr@localhost linux]$ head -2 fichier.txt
access.txt
ark.txt
mode bavard avec l'option -v ( affiche
le nom du fichier : ==> fichier.txt <== et les 10 premières
lignes
[cr@localhost linux]$ head -v fichier.txt
==> fichier.txt <== access.txt ark.txt bash.txt
bzip2.txt cat.txt chgrp.txt chmod.txt chown.txt chprg.txt
cp.txt [cr@localhost linux]$
Affiche les 5 premiers caractères
( octets) du fichier.txt
[cr@localhost linux]$ head -c5 fichier.txt
acces [cr@localhost linux]$
|
|