Remove SSIDs without name in iwlist wlan scan

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












In Raspbian when I'm running command iwlist wlan0 scan | grep ESSID i'm getting results without SSID on it like below



 ESSID:"OpenWrt"
ESSID:"dlink"
ESSID:"tplink"
ESSID:"linksys"
ESSID:"tenda"
ESSID:"pi"
ESSID:""
ESSID:"somessid"
ESSID:""
ESSID:"router"
ESSID:""
ESSID:""
ESSID:""


I don't why I getting this blank SSID lines. my work environment may have some hidden network. not sure. but I need to remove this before send to front end processing. how can I achieve this







share|improve this question
























    up vote
    1
    down vote

    favorite












    In Raspbian when I'm running command iwlist wlan0 scan | grep ESSID i'm getting results without SSID on it like below



     ESSID:"OpenWrt"
    ESSID:"dlink"
    ESSID:"tplink"
    ESSID:"linksys"
    ESSID:"tenda"
    ESSID:"pi"
    ESSID:""
    ESSID:"somessid"
    ESSID:""
    ESSID:"router"
    ESSID:""
    ESSID:""
    ESSID:""


    I don't why I getting this blank SSID lines. my work environment may have some hidden network. not sure. but I need to remove this before send to front end processing. how can I achieve this







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      In Raspbian when I'm running command iwlist wlan0 scan | grep ESSID i'm getting results without SSID on it like below



       ESSID:"OpenWrt"
      ESSID:"dlink"
      ESSID:"tplink"
      ESSID:"linksys"
      ESSID:"tenda"
      ESSID:"pi"
      ESSID:""
      ESSID:"somessid"
      ESSID:""
      ESSID:"router"
      ESSID:""
      ESSID:""
      ESSID:""


      I don't why I getting this blank SSID lines. my work environment may have some hidden network. not sure. but I need to remove this before send to front end processing. how can I achieve this







      share|improve this question












      In Raspbian when I'm running command iwlist wlan0 scan | grep ESSID i'm getting results without SSID on it like below



       ESSID:"OpenWrt"
      ESSID:"dlink"
      ESSID:"tplink"
      ESSID:"linksys"
      ESSID:"tenda"
      ESSID:"pi"
      ESSID:""
      ESSID:"somessid"
      ESSID:""
      ESSID:"router"
      ESSID:""
      ESSID:""
      ESSID:""


      I don't why I getting this blank SSID lines. my work environment may have some hidden network. not sure. but I need to remove this before send to front end processing. how can I achieve this









      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 29 '17 at 8:52









      charith

      15710




      15710




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          $ iwlist wlan0 scan | grep 'ESSID:"..*"'
          ESSID:"OpenWrt"
          ESSID:"dlink"
          ESSID:"tplink"
          ESSID:"linksys"
          ESSID:"tenda"
          ESSID:"pi"
          ESSID:"somessid"
          ESSID:"router"



          • . meta character matches any character


          • .* will match zero or more characters

          • Can also use grep -E 'ESSID:".+"' which will match at least one character between the double quotes





          share|improve this answer
















          • 1




            Working perfectly fine !! thanks
            – charith
            Oct 29 '17 at 9:23










          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%2f401174%2fremove-ssids-without-name-in-iwlist-wlan-scan%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










          $ iwlist wlan0 scan | grep 'ESSID:"..*"'
          ESSID:"OpenWrt"
          ESSID:"dlink"
          ESSID:"tplink"
          ESSID:"linksys"
          ESSID:"tenda"
          ESSID:"pi"
          ESSID:"somessid"
          ESSID:"router"



          • . meta character matches any character


          • .* will match zero or more characters

          • Can also use grep -E 'ESSID:".+"' which will match at least one character between the double quotes





          share|improve this answer
















          • 1




            Working perfectly fine !! thanks
            – charith
            Oct 29 '17 at 9:23














          up vote
          2
          down vote



          accepted










          $ iwlist wlan0 scan | grep 'ESSID:"..*"'
          ESSID:"OpenWrt"
          ESSID:"dlink"
          ESSID:"tplink"
          ESSID:"linksys"
          ESSID:"tenda"
          ESSID:"pi"
          ESSID:"somessid"
          ESSID:"router"



          • . meta character matches any character


          • .* will match zero or more characters

          • Can also use grep -E 'ESSID:".+"' which will match at least one character between the double quotes





          share|improve this answer
















          • 1




            Working perfectly fine !! thanks
            – charith
            Oct 29 '17 at 9:23












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          $ iwlist wlan0 scan | grep 'ESSID:"..*"'
          ESSID:"OpenWrt"
          ESSID:"dlink"
          ESSID:"tplink"
          ESSID:"linksys"
          ESSID:"tenda"
          ESSID:"pi"
          ESSID:"somessid"
          ESSID:"router"



          • . meta character matches any character


          • .* will match zero or more characters

          • Can also use grep -E 'ESSID:".+"' which will match at least one character between the double quotes





          share|improve this answer












          $ iwlist wlan0 scan | grep 'ESSID:"..*"'
          ESSID:"OpenWrt"
          ESSID:"dlink"
          ESSID:"tplink"
          ESSID:"linksys"
          ESSID:"tenda"
          ESSID:"pi"
          ESSID:"somessid"
          ESSID:"router"



          • . meta character matches any character


          • .* will match zero or more characters

          • Can also use grep -E 'ESSID:".+"' which will match at least one character between the double quotes






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 29 '17 at 9:04









          Sundeep

          6,9611826




          6,9611826







          • 1




            Working perfectly fine !! thanks
            – charith
            Oct 29 '17 at 9:23












          • 1




            Working perfectly fine !! thanks
            – charith
            Oct 29 '17 at 9:23







          1




          1




          Working perfectly fine !! thanks
          – charith
          Oct 29 '17 at 9:23




          Working perfectly fine !! thanks
          – charith
          Oct 29 '17 at 9:23

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401174%2fremove-ssids-without-name-in-iwlist-wlan-scan%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?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?