please *don't* CC me. On Mon, Jan 25, 2021 at 11:46 AM Antony Stone < [email protected]> wrote:
> On Monday 25 January 2021 at 20:37:31, Aris Aguirre wrote: > > > you cant...cos a lot of characters there.. i cant find a way how to > delete > > them in regex. > > Can you explain to us exactly what you want the command to identify? > > Are there, for example, certain characters which should never appear in a > file, > and if they do, you want the content to be replaced? > > If that's not the case, then what do you want to recognise and replace? > How > would you tell a person what to do? > > > On Monday, January 25, 2021 at 1:05:37 PM UTC-6 [email protected] wrote: > > > On Mon, Jan 25, 2021 at 1:58 PM Aris Aguirre <[email protected]> > wrote: > > > > I can easily use a file module to delete the existing file and > create a > > > > new one with File1 content. > > > > > > > But I want to modifile the file using lineinfile or replace. Please > > > > help. Thanks > > > > > > > > Existing File: > > > > This is an existing file / $ % with invalid characters &*() Blahh > > > > > > > > Expected Output: > > > > File1 > > > > > > If you can define it in regexp you can do it. > > > Regards, > > > Antony. > > -- > Police have found a cartoonist dead in his house. They say that details > are > currently sketchy. > > Please reply to the > list; > please *don't* CC > me. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPU7Z%3D6YpfwwZaRQsbZeWbsQE%3D9GFcFst-uob6LbrnK8BWGmwg%40mail.gmail.com.
