Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1885 connectés 

  FORUM HardWare.fr
  Programmation
  Shell/Batch

  Couper uin fichier en 2

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Couper uin fichier en 2

n°889320
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 03-11-2004 à 11:34:32  profilanswer
 

Salut, je cherche un moyen pour couper un fichier texte en 2 :
 
 
 
si il y a 10 lignes : faire 2 fichiers de 5 lignes
 
 
merci.


---------------
#mais-chut
mood
Publicité
Posté le 03-11-2004 à 11:34:32  profilanswer
 

n°889331
couak
Posté le 03-11-2004 à 11:47:35  profilanswer
 

sous unix tu as l'utilitaire "split"

n°889397
darkoli
Le Petit Dinosaure Bleu
Posté le 03-11-2004 à 12:58:33  profilanswer
 

couak a écrit :

sous unix tu as l'utilitaire "split"

Sinon (mais toujours sous Unix/Linux) tu as les commandes head et tail.

head -n 5 nom_du_fichier.txt
tail -n +6 nom_du_fichier.txt


---------------
Le site de l'année :D (XHTML 1.0 strict) : http://darkoli.free.fr/index.html
n°889430
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 03-11-2004 à 13:23:44  profilanswer
 

et sous Windows ?


---------------
#mais-chut
n°889439
Taz
bisounours-codeur
Posté le 03-11-2004 à 13:30:32  profilanswer
 

darkoli a écrit :

Sinon (mais toujours sous Unix/Linux) tu as les commandes head et tail.

head -n 5 nom_du_fichier.txt
tail -n +6 nom_du_fichier.txt



moeuf, ça s'applique uniquement aux fichiers textes ça

n°889443
couak
Posté le 03-11-2004 à 13:36:38  profilanswer
 

Z_cool a écrit :

et sous Windows ?


zip en plusieurs fichiers ? :)

n°889464
the real m​oins moins
Posté le 03-11-2004 à 13:59:01  profilanswer
 

Z_cool a écrit :

et sous Windows ?

google ou wsr, au choix

n°889504
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 03-11-2004 à 14:54:35  profilanswer
 

Taz a écrit :

moeuf, ça s'applique uniquement aux fichiers textes ça


 
c est bien un fichier txt que j ai


---------------
#mais-chut
n°889507
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 03-11-2004 à 14:56:44  profilanswer
 

couak a écrit :

zip en plusieurs fichiers ? :)


 
ba le but, c est ke j ai un script qui lancé a pleine vitesse ne consome pas 25% du CPU, le HD n est pas utilisé et la RAM on en parle meme pas.
 
 
or, comme je suis sur une machine quadri-processeurs (dont 2 virtuels) je voudrait lancer 2 fois mon script sur la moitié des donnees.


---------------
#mais-chut
n°889513
skeye
Posté le 03-11-2004 à 15:03:27  profilanswer
 

Z_cool a écrit :

ba le but, c est ke j ai un script qui lancé a pleine vitesse ne consome pas 25% du CPU, le HD n est pas utilisé et la RAM on en parle meme pas.
 
 
or, comme je suis sur une machine quadri-processeurs (dont 2 virtuels) je voudrait lancer 2 fois mon script sur la moitié des donnees.


Un indice : ton script n'est pas multithreadé.


---------------
Can't buy what I want because it's free -
mood
Publicité
Posté le 03-11-2004 à 15:03:27  profilanswer
 

n°889587
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 03-11-2004 à 16:16:12  profilanswer
 

skeye a écrit :

Un indice : ton script n'est pas multithreadé.


 
ba.... oui ca je le sais bien.  
 
c est pour cela que je veux lancer plusieur fois mon script sur des donnes en entree complementaire.


---------------
#mais-chut
n°890213
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 04-11-2004 à 14:30:02  profilanswer
 

il n y a donc aucun moyen simple pour couper un fichier txt en 2 sous Windows ?


---------------
#mais-chut
n°890254
the real m​oins moins
Posté le 04-11-2004 à 15:06:48  profilanswer
 

PUTAIN !
GOOGLE / WSR !

n°890324
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 04-11-2004 à 16:10:16  profilanswer
 

Le resutat de WSR sur google.fr :
 
West Somerset Railway on the Web - unofficial site
All about the West Somerset Railway - Britain's longest heritage railway.
www.wsr.org.uk/ - 2k - Cached - Similar pages
 
West Surrey Racing
The team behind the MG BTCC cars.
www.wsr-racing.com/ - 1k - Cached - Similar pages
 
Die Energieverwertungsagentur - EVA - [ Translate this page ]
Logo Energieverwertungsagentur (EVA) Energieverwertungsagentur - the Austrian Energy
Agency (EVA) Mit Energieeffizienz, neuen Technologien und Erneuerbaren zu ...
www.eva.wsr.ac.at/ - 16k - Cached - Similar pages
 
WSR - Wirtschafts- und Sozialwissenschaftliches Rechenzentrum - [ Translate this page ]
WSR - Wirtschafts- und Sozialwissenschaftliches Rechenzentrum, Wirtschafts- und
Sozialwissenschaftliches Rechenzentrum Österreichischer Host für ...
www.wsr.ac.at/ - 6k - Cached - Similar pages
 
Quicksilver WSR, Official Website Splash Page
 
 
aucune catin a l horizon.  
et encors mois de solution pour spliter un fichier TXT en 2


---------------
#mais-chut
n°891218
Z_cool
HFR profile rating:⭐⭐⭐⭐
Posté le 05-11-2004 à 13:49:23  profilanswer
 

pas d autre idee ?


---------------
#mais-chut
n°891303
Taz
bisounours-codeur
Posté le 05-11-2004 à 14:58:06  profilanswer
 

si, le bouton rouge

n°891305
gizmo
Posté le 05-11-2004 à 15:00:02  profilanswer
 

Z_cool a écrit :

Le resutat de WSR sur google.fr :
 
West Somerset Railway on the Web - unofficial site
All about the West Somerset Railway - Britain's longest heritage railway.
www.wsr.org.uk/ - 2k - Cached - Similar pages
 
West Surrey Racing
The team behind the MG BTCC cars.
www.wsr-racing.com/ - 1k - Cached - Similar pages
 
Die Energieverwertungsagentur - EVA - [ Translate this page ]
Logo Energieverwertungsagentur (EVA) Energieverwertungsagentur - the Austrian Energy
Agency (EVA) Mit Energieeffizienz, neuen Technologien und Erneuerbaren zu ...
www.eva.wsr.ac.at/ - 16k - Cached - Similar pages
 
WSR - Wirtschafts- und Sozialwissenschaftliches Rechenzentrum - [ Translate this page ]
WSR - Wirtschafts- und Sozialwissenschaftliches Rechenzentrum, Wirtschafts- und
Sozialwissenschaftliches Rechenzentrum Österreichischer Host für ...
www.wsr.ac.at/ - 6k - Cached - Similar pages
 
Quicksilver WSR, Official Website Splash Page
 
 
aucune catin a l horizon.  
et encors mois de solution pour spliter un fichier TXT en 2


[:quoted] [:rofl]

n°891320
masklinn
í dag viðrar vel til loftárása
Posté le 05-11-2004 à 15:12:27  profilanswer
 

http://www.wackyweaselworld.com/flameINC/images/FU11.jpg


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°891351
Grululu
Posté le 05-11-2004 à 15:48:39  profilanswer
 

Toujours aussi agréable ce forum.
'fin bon.
 
Découpailleur de fichier sous windows :
http://www.dekabyte.com/filesplitter/


Message édité par Grululu le 05-11-2004 à 15:49:01
n°891357
pascal_
Posté le 05-11-2004 à 15:57:07  profilanswer
 

http://www.anshare.com/type.asp?T= [...] e+fichiers
 
Le problème c'est que les softs ne sont pas spécifiquement conçus pour les fichiers textes, ça peut couper au milieu d'une ligne...
 

n°891394
gilou
Modérateur
Modosaurus Rex
Posté le 05-11-2004 à 16:45:01  profilanswer
 

Mais si suffit de chercher chez Gnu: http://sourceforge.net/project/sho [...] _id=151105 voir à csplit par exemple.
 
Bon, je ferme ce topic, car la on est pas dans un topic programmation, mais dans un topic handicapé_du_ google et de plus ca devrait figurer a la section Soft.
A+,

mood
Publicité
Posté le   profilanswer
 


Aller à :
  FORUM HardWare.fr
  Programmation
  Shell/Batch

  Couper uin fichier en 2

 

Sujets relatifs
[PHP] Récupérer le dernier tableau d'un fichier HTMLparsage de fichier - boucle sur un repertoire
Comment crée un fichier .exe???????[BATCH] fichier txt et variable
Upload d'un fichier MP3vbscript + fichier INI
Recherche: couper un fichier pdf automatiquement en plusieurs petitscouper la fin d'un fichier
Y'a pas 1 commande DOS qui me permettrait de couper mon fichier ??Couper un gros fichier en petits
Plus de sujets relatifs à : Couper uin fichier en 2


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)