Add more information to you. What does data.txt look like? Like this:
11111111 11111111 pass1111 11111111
Or like that
afawfdgd password somethin gelse...
And did you know that the password is in the file, or you are looking for a string with repetition.
If you know the password, use something like this
cat data.txt | grep 'password'
If you do not know the password, and this password is a unique line in the file, you must create a script. For example, in Python
file = open("data.txt","r") f = file.read() for line in f: if 'pass' in line: print pass
Of course, replace the passage with another. For example, some slice from a string.
source share