Cut, sort ?
Posted: Fri Sep 07, 2012 4:30 pm
Hi budies!
Really need some help (and sorry for my English, i'm come frome France),
I'm on ubuntu, bash.
I've got a file with a lot of names delimited with a ";" written like this:
Francois de france; Julien d'amerique; Emilie de Suede; gustave de Picardie;
It's very difficult to read it, cause i have hundreds of them.
I'm trying to sort them like this:
Francois de France;
Julien d'Amerique;
(...)
Gustave de Picardie;
So i tried to use the ";" as a delimiter and reading the arguments:
cut -d ";" -f 1-100 file.txt
It only give me my first style list in the terminal....I'm completly blocked...
Is there here a Linux Champion that can help me..?
Thanks all !!!
Really need some help (and sorry for my English, i'm come frome France),
I'm on ubuntu, bash.
I've got a file with a lot of names delimited with a ";" written like this:
Francois de france; Julien d'amerique; Emilie de Suede; gustave de Picardie;
It's very difficult to read it, cause i have hundreds of them.
I'm trying to sort them like this:
Francois de France;
Julien d'Amerique;
(...)
Gustave de Picardie;
So i tried to use the ";" as a delimiter and reading the arguments:
cut -d ";" -f 1-100 file.txt
It only give me my first style list in the terminal....I'm completly blocked...
Is there here a Linux Champion that can help me..?
Thanks all !!!