Page 1 of 1

script to select full lines from text file

Posted: 15 Apr 2020 16:19
by kotlmg
sir,
i think it is not related to xyplorer.
is it possible to write script to select matching word full lines from text file and copy the contents to clipboard?
ex:
i have text file with
D:\Devadas\yevadu songs\Yevadu- Freedom.mp4
D:\Devadas\yevadu songs\Yevadu- Nee Jathaga.mp4
D:\Devadas\yevadu songs\Yevadu- Oye Oye.mp4
D:\Devadas\yevadu songs\Yevadu- Pimple Dimple.mp4
D:\Devadas\Zehar\Zeher 1.avi
D:\Devadas\Zehar\Zeher 2.avi
D:\Devadas\Zehar\Zeher 3.avi
D:\Devadas\Zehar\Zeher 4.avi
D:\Devadas\baahubali songs\Autograph tamil song.mp4
D:\Devadas\geethagovindam\Naa Autograph Songs Mounamgane Video Song Ravi Teja, Gopika, Bhoomika Sri Balaji Video.mp4
D:\Devadas\Tagore songs\Naa Autograph 1.avi

if i use find command Zeher|auto
it should copy following to clipboard. basically i need to select full lines.
D:\Devadas\Zehar\Zeher 1.avi
D:\Devadas\Zehar\Zeher 2.avi
D:\Devadas\Zehar\Zeher 3.avi
D:\Devadas\Zehar\Zeher 4.avi
D:\Devadas\baahubali songs\Autograph tamil song.mp4
D:\Devadas\geethagovindam\Naa Autograph Songs Mounamgane Video Song Ravi Teja, Gopika, Bhoomika Sri Balaji Video.mp4
D:\Devadas\Tagore songs\Naa Autograph 1.avi

if you can suggest me any text software also , i will try it and it will be of more help to me.

with regards,
kotlmg

Re: script to select full lines from text file

Posted: 15 Apr 2020 16:46
by highend
An easy task for a simple regex...

Re: script to select full lines from text file

Posted: 16 Apr 2020 08:22
by kotlmg
got the solution with notepad++. it is only a simple command with search with regular expressions.
my problem is solved.
thanks.