script to select full lines from text file

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kotlmg
Posts: 321
Joined: 30 Jun 2010 17:14

script to select full lines from text file

Post 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

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: script to select full lines from text file

Post by highend »

An easy task for a simple regex...
One of my scripts helped you out? Please donate via Paypal

kotlmg
Posts: 321
Joined: 30 Jun 2010 17:14

Re: script to select full lines from text file

Post by kotlmg »

got the solution with notepad++. it is only a simple command with search with regular expressions.
my problem is solved.
thanks.

Post Reply