|
Page : 1 2 Page Précédente | |
Auteur | Sujet : Demande d'aide : Manipulation de fichier texte en .csv |
![]() Publicité | Posté le 31-08-2011 à 12:16:18 ![]() ![]() |
rufo Pas me confondre avec Lycos! | Sous Linux, je t'aurais recommandé Awk, mais rien de tel à ma connaissance sous Windows.
--------------- Astres, outil de help-desk GPL : http://sourceforge.net/projects/astres, ICARE, gestion de conf : http://sourceforge.net/projects/icare, Outil Planeta Calandreta : https://framalibre.org/content/planeta-calandreta |
masklinn í dag viðrar vel til loftárása |
Perl oui, Python oui, Ruby oui, mais pas PHP CPSeb: probablement pas de langage fondamentalement mieux qu'un autre, sauf si tu en trouves un qui sait nativement parser ton format de rapport bizarre mais ça j'en doute. Je serais toi, je regarderais du côté de Ruby ou Python, ils sont lisibles et ont un bon support Windows. Sinon, comme je l'ai mentionné, regardes du côté de powershell dans la mesure où tu es sous windows, je ne sais pas ce que ça donne niveau string munging mais ça peut suffire. Message édité par masklinn le 01-09-2011 à 19:37:21 --------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
rufo Pas me confondre avec Lycos! | Masklinn, un peu bizarre que tu dises oui à Perl et non à Php --------------- Astres, outil de help-desk GPL : http://sourceforge.net/projects/astres, ICARE, gestion de conf : http://sourceforge.net/projects/icare, Outil Planeta Calandreta : https://framalibre.org/content/planeta-calandreta |
masklinn í dag viðrar vel til loftárása |
--------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
CPSeb | Je pense que je vais me tourner vers du python.
|
masklinn í dag viðrar vel til loftárása |
--------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
masklinn í dag viðrar vel til loftárása |
--------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
Elmoricq Modérateur | +1 ce qui a été dit ci-dessus. J'ai personnellement une préférence vers PERL pour ce genre de tâche ingrate impliquant du parsing de fichiers, c'est le langage qui sauve la vie en peu de ligne de codes pour ce genre de choses. Message cité 2 fois Message édité par Elmoricq le 02-09-2011 à 13:34:38 |
![]() Publicité | Posté le 02-09-2011 à 13:33:49 ![]() ![]() |
masklinn í dag viðrar vel til loftárása |
--------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
gilou ModérateurModzilla |
C'est clair que Perl est particulièrement bien adapté pour faire ce genre de traitement (perso, ça me prendrait moins d'une heure pour pondre le script kivabien en Perl et le tester). --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
CPSeb | Merci gilou, pour moi ca va me prendre une année Message cité 2 fois Message édité par CPSeb le 02-09-2011 à 15:47:32 |
masklinn í dag viðrar vel til loftárása |
--------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
mrbebert | Si le fichier provient d'Unix, il faudrait le traiter avant de le rapatrier. Et là, du awk me semble tout à fait adapté --------------- Doucement le matin, pas trop vite le soir. |
gilou ModérateurModzilla |
Parser, ça veut dire analyser le contenu d'un fichier ligne a ligne (et effectuer des actions en fonction de ce qu'on trouve à chaque ligne)
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
masklinn í dag viðrar vel til loftárása |
--------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
gilou ModérateurModzilla | Bon, allez, hop, une ébauche de programme en perl, qui marche sur les quelques données qu'il a fourni (après, faudrait en savoir plus sur le format exact des lignes de données). Ca lui permettra d'affiner selon ses besoins. Et il va devoir se plonger un peu dans la notion d'expression régulière pour comprendre le parsing d'une ligne de données comme fait ici.
Message édité par gilou le 03-09-2011 à 10:26:30 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
CPSeb | j'ai trouvé ( vive dos Message édité par CPSeb le 05-09-2011 à 13:04:59 |
CPSeb | Voici un exemplede ligne qui ne fonctionne pas:
Message édité par CPSeb le 06-09-2011 à 14:54:26 |
gilou ModérateurModzilla | Oui, mais la, la structure de ta ligne est différente:
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
CPSeb | Bon après analyse attentive et après discussion avec mon DSI voici ce qu il serait bien dans un premier temps ( ca va etre plus compliqué je pense)
Message édité par CPSeb le 08-09-2011 à 10:09:19 |
CPSeb | si j'ai compris ton explication Message cité 1 fois Message édité par CPSeb le 08-09-2011 à 12:52:25 |
gilou ModérateurModzilla | Bon je pense qu'en t'inspirant de ceci, tu devrais pouvoir adapter pour ton résultat final:
Message édité par gilou le 08-09-2011 à 14:56:50 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
gilou ModérateurModzilla | Le découpage est plus grossier:
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
gilou ModérateurModzilla |
Oui, mais si c'est en début de ligne (ça commence par ^)
J'ai pas compris ce que tu veux, la.
Message édité par gilou le 08-09-2011 à 14:55:59 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
CPSeb | Gilou t'es trop fort !
|
mdc888 01010100 01101111 01110101 011 | Content que tu aie trouvé !
|
masklinn í dag viðrar vel til loftárása |
Et ça n'a rien d''un troll, c'est une description parfaitement objective. Message cité 1 fois Message édité par masklinn le 08-09-2011 à 17:45:11 --------------- 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, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
mdc888 01010100 01101111 01110101 011 |
|
gilou ModérateurModzilla | Perso, je pense que Masklinn est assez objectif.
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
mdc888 01010100 01101111 01110101 011 | Vrai ?
|
gilou ModérateurModzilla | On en a vu dire la même chose au sujet du Cobol ou de Windev... --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
![]() Publicité | Posté le ![]() ![]() |
Page : 1 2 Page Précédente |
Sujets relatifs | |
---|---|
Texte incopiable | [demande] envoi automatique de produit numerique |
demande de script pr reconnec sagem LB2/Jdownloader | [VB] Modifier un fichier XML |
Besoin d'aide pour un SELECT multitables | répliquer un texte à plusieurs endroits ( sans signets si possible ! ) |
Compilation fortran sous cygwin : .exe demande UAC | VBA - Gestion de la fenêtre windows "Téléchargement de fichier" |
un fichier PDF qui s'ouvrirait dans une nouvelle fenêtre (pop up) | C++ Fermer l'execution d'un fichier. |
Plus de sujets relatifs à : Demande d'aide : Manipulation de fichier texte en .csv |