Bonjour Henri, 
Merci de ne pas me prendre pour un idiot, car j'ai donné la bonne regex 
avec awk 
Explications : 
https://fr.wikipedia.org/wiki/Awk 
https://catonmat.net/ftp/awk.cheat.sheet.txt 
https://www.shellunix.com/awk.html 
cordialement 
Bernard 
----- Mail original -----
De: "Henri Boyet" <henri.boyet@gmail.com> 
À: "Bernard Schoenacker" <bernard.schoenacker@free.fr> 
Cc: "Liste Users LibO" <users@fr.libreoffice.org> 
Envoyé: Vendredi 21 Avril 2023 23:35:48 
Objet: Re: [fr-users] Utilisation de txtooo pour insérer un numéro de ligne 
Bonjour, 
Le problème n’est pas l’insertion de la colonne. L’extension txtooo le fait très bien. Ce que je 
n’arrive pas à faire, c’est la formule ROW pour remplir la cellule. 
Merci, 
Henri 
Le ven. 21 avr. 2023 à 23:23, Bernard Schoenacker < bernard.schoenacker@free.fr > a écrit : 
Bonjour, 
Voici une solution qui est également exploitable pour les utilisateurs 
des différentes versions de chez Microsoft (version 10 et supérieur) : 
awk '{printf "%s,%s\n", NR,$0}' input.txt > new.txt 
https://askubuntu.com/questions/844843/adding-a-new-column-as-line-number-in-a-csv-file 
remarque : installer WSL2 
https://beebom.com/how-enable-linux-bash-shell-windows-10-wsl-2/ 
tuto en français : 
https://www.delftstack.com/fr/howto/linux/add-the-wsl-bash-shell-to-windows/ 
Merci 
@+ 
Bernard 
----- Mail original ----- 
De: "Henri Boyet" < henri.boyet@gmail.com > 
À: "Liste Users LibO" < users@fr.libreoffice.org > 
Envoyé: Vendredi 21 Avril 2023 22:32:02 
Objet: [fr-users] Utilisation de txtooo pour insérer un numéro de ligne 
Bonjour, 
Je voudrais ouvrir un fichier csv en insérant une colonne contenant le 
numéro de la ligne. 
J’ai ajouté dans les paramètres (fichier xml) la ligne : 
<txtooo:column txtooo:num="10" txtooo:name="Ligne" txtooo:macro="" 
txtooo:numeric="0" txtooo:formula="ROW" txtooo:fp1="" txtooo:fp2="" 
txtooo:fp3="" /> 
Mais j’ai un message d’erreur : CallFunction Une exception s’est produite : 
Type: com.sun.star.uno.RuntimeException 
Message: . 
Quel est le problème ? 
Merci, 
Henri 
-- 
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire 
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/ 
Privacy Policy: https://www.documentfoundation.org/privacy 
-- 
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.