Skip to content
Tags

,

Linux – Les filtres

by Benjamin on février 2nd, 2010

cut

cat list

1,un,one,ein
2,deux,two,zwei
3,trois,three,drei
4,quatre,four,vier
5,cinq,five,funf
6,six,six,sechs
7,sept,seven,sieben
8,huit,eight,acht
9,neuf,nine,neun
10,dix,ten,zen

cut –f1,3 –d','

1,one
2,two
3,three
4,four
5,five
6,six
7,seven
8,eight
9,nine
10,ten

cat villes

75000PARIS
59000LILLE
71000MACON
63000CLERMONT-FERRAND

cut –c1-5 villes

75000
59000
71000
63000

cut –c6- villes

PARIS
LILLE
MACON
CLERMONT-FERRAND

sort

cat list

1,un,one,ein
2,deux,two,zwei
3,trois,three,drei
4,quatre,four,vier
5,cinq,five,funf
6,six,six,sechs
7,sept,seven,sieben
8,huit,eight,acht
9,neuf,nine,neun
10,dix,ten,zen

sort +3 –t','  (trie sur la 4ème colonne)

8,huit,eight,acht
3,trois,three,drei
1,un,one,ein
5,cinq,five,funf
9,neuf,nine,neun
6,six,six,sechs
7,sept,seven,sieben
4,quatre,four,vier
10,dix,ten,zen
2,deux,two,zwei

Autres articles susceptibles de vous intéresser :

From → System

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS