AlexPirate14
Zero Trust Advocate
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
300 XP
Im sure there are some programs out there to do it, and I know there are websites out there that will also do it, but i'm not uploading my hits on a site lol. I wrote a small script via powershell to extract lines out of your hits.
simply open powershell on your computer and input the following code, adjust it to fit your needs, figured some might find this useful maybe not, I'm no coder or anything just need something to pull lines out of my hits instead of going one by one.
add a folder to your C drive call it what you want, I named my folder lines
then add the text file to that folder you to extract the lines name it what you want, I named mine extract.txt
hit play on powershell it will auto save the script for you. and will output the extracted text to extracted.txt
simply open powershell on your computer and input the following code, adjust it to fit your needs, figured some might find this useful maybe not, I'm no coder or anything just need something to pull lines out of my hits instead of going one by one.
add a folder to your C drive call it what you want, I named my folder lines
then add the text file to that folder you to extract the lines name it what you want, I named mine extract.txt
hit play on powershell it will auto save the script for you. and will output the extracted text to extracted.txt
Code:
$log = get-content C:\lines\extract.txtforeach ($line in $log) {
if ($line -like "*WHAT TO FIND HERE*") {
$line | out-file -FilePath "C:\lines\extracted.txt" -Append
}}