Jump to content

Grep Command


greendixy

Recommended Posts

i got like 20+ list i know there is some same passwords in each one i want to transfer all passwords to one file taking out the same passwords if possible soo lets say

List

a.txt

b.txt

c.txt

to

some file.lst so it would grep *.txt to *.lst taking out the same passwords if possible

Link to comment
Share on other sites

So here is my rundown

Decided to do "cat" to group all my files

greendixy@bt:~$ cat *.txt > cleanlist.lst <-- worked great

Then i just used your command and it cleaned it up fairly well

greendixy@bt:~$ sort cleanlist.lst | uniq -u > cleanlist.txt

And here is the list it's not as big like the 2+ gig ones lol

cleanlist.txt

Name : cleanlist.txt

Size : 33 MB

Edited by greendixy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...