Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Le Tue, 16 Aug 2016 21:57:07 +0200,
Jaccomard <jaccomard@free.fr> a écrit :

Bonjour à tous,

Je souhaiterais récupérer, à l'aide d'une macro, un curseur situé
juste avant un cadre donné (le but est de remplacer le cadre par une
chaine de caractère en plein texte).

Quelqu'un a-t-il déjà fait ça ?

cordialement,

O.J.

bonjour,


pas besoins de macro il te suffit de basculer ton document au format
texte (TXT) et d'employer:

-a) Select-String (grep for Unix)
-b) sed
-c) awk

attention, il faut employer powershell

Get-Content .\doc.txt | Select-String -Pattern (Get-Content .\regex.txt)


documentation :

https://stackoverflow.com/questions/15199321/powershell-equivalent-to-grep-f
https://en.wikipedia.org/wiki/Windows_PowerShell#Comparison_of_cmdlets_with_similar_commands
https://blogs.msdn.microsoft.com/zainnab/2007/07/08/grep-and-sed-with-powershell/
https://blogs.msdn.microsoft.com/powershell/2008/03/23/select-string-and-grep/


téléchargements :

http://gnuwin32.sourceforge.net/packages/gawk.htm
http://gnuwin32.sourceforge.net/packages/sed.htm


slt
bernard

-- 
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à http://listarchives.libreoffice.org/fr/users/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être 
supprimés

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.