Saved output from putty not treated as regular txt
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I saved the session output from putty to my windows desktop (puttyoutput.txt) and after that i uploaded it to my server. The problem comes when trying to grep the file (cat puttyoutout.txt |grep searchterm)
Binary file (standard input) matches
Any ideea why this happens or how can i avoid it?
p.s. i'am also trying to grep for ips where i cant the -a option (grep -aEx '([0-9]1,3.)3[0-9]1,3' puttyoutput.txt)
grep putty
add a comment |Â
up vote
1
down vote
favorite
I saved the session output from putty to my windows desktop (puttyoutput.txt) and after that i uploaded it to my server. The problem comes when trying to grep the file (cat puttyoutout.txt |grep searchterm)
Binary file (standard input) matches
Any ideea why this happens or how can i avoid it?
p.s. i'am also trying to grep for ips where i cant the -a option (grep -aEx '([0-9]1,3.)3[0-9]1,3' puttyoutput.txt)
grep putty
might be some terminal control-sequences or a utf8-unaware grep that causes the problem. how does the file look like on the server? maybe ftp with text-mode? is puttyoutout.txt the same as puttyoutput.txt (or just a typo)?
â stoney
Jun 13 at 13:13
The output offile puttyoutput.txt
might be helpful here
â steeldriver
Jun 13 at 13:24
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I saved the session output from putty to my windows desktop (puttyoutput.txt) and after that i uploaded it to my server. The problem comes when trying to grep the file (cat puttyoutout.txt |grep searchterm)
Binary file (standard input) matches
Any ideea why this happens or how can i avoid it?
p.s. i'am also trying to grep for ips where i cant the -a option (grep -aEx '([0-9]1,3.)3[0-9]1,3' puttyoutput.txt)
grep putty
I saved the session output from putty to my windows desktop (puttyoutput.txt) and after that i uploaded it to my server. The problem comes when trying to grep the file (cat puttyoutout.txt |grep searchterm)
Binary file (standard input) matches
Any ideea why this happens or how can i avoid it?
p.s. i'am also trying to grep for ips where i cant the -a option (grep -aEx '([0-9]1,3.)3[0-9]1,3' puttyoutput.txt)
grep putty
edited Jun 13 at 13:10
asked Jun 13 at 13:03
Killroy2018
346
346
might be some terminal control-sequences or a utf8-unaware grep that causes the problem. how does the file look like on the server? maybe ftp with text-mode? is puttyoutout.txt the same as puttyoutput.txt (or just a typo)?
â stoney
Jun 13 at 13:13
The output offile puttyoutput.txt
might be helpful here
â steeldriver
Jun 13 at 13:24
add a comment |Â
might be some terminal control-sequences or a utf8-unaware grep that causes the problem. how does the file look like on the server? maybe ftp with text-mode? is puttyoutout.txt the same as puttyoutput.txt (or just a typo)?
â stoney
Jun 13 at 13:13
The output offile puttyoutput.txt
might be helpful here
â steeldriver
Jun 13 at 13:24
might be some terminal control-sequences or a utf8-unaware grep that causes the problem. how does the file look like on the server? maybe ftp with text-mode? is puttyoutout.txt the same as puttyoutput.txt (or just a typo)?
â stoney
Jun 13 at 13:13
might be some terminal control-sequences or a utf8-unaware grep that causes the problem. how does the file look like on the server? maybe ftp with text-mode? is puttyoutout.txt the same as puttyoutput.txt (or just a typo)?
â stoney
Jun 13 at 13:13
The output of
file puttyoutput.txt
might be helpful hereâ steeldriver
Jun 13 at 13:24
The output of
file puttyoutput.txt
might be helpful hereâ steeldriver
Jun 13 at 13:24
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
strings puttyoutout.txt |grep searchterm
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
strings puttyoutout.txt |grep searchterm
add a comment |Â
up vote
2
down vote
accepted
strings puttyoutout.txt |grep searchterm
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
strings puttyoutout.txt |grep searchterm
strings puttyoutout.txt |grep searchterm
answered Jun 13 at 13:10
Ipor Sircer
8,6281920
8,6281920
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449543%2fsaved-output-from-putty-not-treated-as-regular-txt%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
might be some terminal control-sequences or a utf8-unaware grep that causes the problem. how does the file look like on the server? maybe ftp with text-mode? is puttyoutout.txt the same as puttyoutput.txt (or just a typo)?
â stoney
Jun 13 at 13:13
The output of
file puttyoutput.txt
might be helpful hereâ steeldriver
Jun 13 at 13:24