you cant...cos a lot of characters there.. i cant find a way how to delete them in regex.
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. > > > -- > > 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/863d3e1d-9091-4654-83ee-6da380cb3fe7n%40googlegroups.com > . > -- 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/3c52c461-9ab4-4bef-958c-73d548f809cbn%40googlegroups.com.
