Saved output from putty not treated as regular txt

The name of the pictureThe name of the pictureThe name of the pictureClash 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)







share|improve this question





















  • 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














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)







share|improve this question





















  • 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












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)







share|improve this question













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)









share|improve this question












share|improve this question




share|improve this question








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 of file 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










  • The output of file 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










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










strings puttyoutout.txt |grep searchterm





share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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





    share|improve this answer

























      up vote
      2
      down vote



      accepted










      strings puttyoutout.txt |grep searchterm





      share|improve this answer























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        strings puttyoutout.txt |grep searchterm





        share|improve this answer













        strings puttyoutout.txt |grep searchterm






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 13 at 13:10









        Ipor Sircer

        8,6281920




        8,6281920






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay