extract characters between two commas?Text processing - join every two lines with commasRemove entire row in a file if first column is repeatedMerging two files, one column at a timeJoin two textfiles on 1st column keeping order and unpairable lines from 1st fileHow to print lines if two fields have identical values?Delete lines that matches a string before commahow to remove comma and strings after a comma in a file?Fastest way to sum Nth column in text fileHow to extract the first row for each entry in the first column?Compare two files and get unmatched rows from the second file based on first and second column

Why was the "bread communication" in the arena of Catching Fire left out in the movie?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

Extreme, but not acceptable situation and I can't start the work tomorrow morning

New order #4: World

Does a dangling wire really electrocute me if I'm standing in water?

"My colleague's body is amazing"

What is the meaning of "of trouble" in the following sentence?

Find the positive root of a 4-th degree polynomial equation

I see my dog run

Is domain driven design an anti-SQL pattern?

How would photo IDs work for shapeshifters?

How can I add custom success page

COUNT(*) or MAX(id) - which is faster?

Where to refill my bottle in India?

Are objects structures and/or vice versa?

Why airport relocation isn't done gradually?

Copycat chess is back

Patience, young "Padovan"

Re-submission of rejected manuscript without informing co-authors

What to wear for invited talk in Canada

Unbreakable Formation vs. Cry of the Carnarium

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

Is there a familial term for apples and pears?



extract characters between two commas?


Text processing - join every two lines with commasRemove entire row in a file if first column is repeatedMerging two files, one column at a timeJoin two textfiles on 1st column keeping order and unpairable lines from 1st fileHow to print lines if two fields have identical values?Delete lines that matches a string before commahow to remove comma and strings after a comma in a file?Fastest way to sum Nth column in text fileHow to extract the first row for each entry in the first column?Compare two files and get unmatched rows from the second file based on first and second column






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I have a file with ~ 3 million rows, here is the first few lines of my file:



head out.txt
NA
NA
NA
NA
NA
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753,gene85754
gene85752,gene85753,gene85754
gene85752,gene85753,gene85754
gene85752,gene85753,gene85754
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752,gene85753
gene85752
gene85752


For those rows that are separated by ",", I want to keep everything after the first comma and before the second comma.
This is my desired output:



outgood.txt
NA
NA
NA
NA
NA
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85753
gene85752
gene85752









share|improve this question




























    4















    I have a file with ~ 3 million rows, here is the first few lines of my file:



    head out.txt
    NA
    NA
    NA
    NA
    NA
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753,gene85754
    gene85752,gene85753,gene85754
    gene85752,gene85753,gene85754
    gene85752,gene85753,gene85754
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752,gene85753
    gene85752
    gene85752


    For those rows that are separated by ",", I want to keep everything after the first comma and before the second comma.
    This is my desired output:



    outgood.txt
    NA
    NA
    NA
    NA
    NA
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85753
    gene85752
    gene85752









    share|improve this question
























      4












      4








      4








      I have a file with ~ 3 million rows, here is the first few lines of my file:



      head out.txt
      NA
      NA
      NA
      NA
      NA
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753,gene85754
      gene85752,gene85753,gene85754
      gene85752,gene85753,gene85754
      gene85752,gene85753,gene85754
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752
      gene85752


      For those rows that are separated by ",", I want to keep everything after the first comma and before the second comma.
      This is my desired output:



      outgood.txt
      NA
      NA
      NA
      NA
      NA
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85752
      gene85752









      share|improve this question














      I have a file with ~ 3 million rows, here is the first few lines of my file:



      head out.txt
      NA
      NA
      NA
      NA
      NA
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753,gene85754
      gene85752,gene85753,gene85754
      gene85752,gene85753,gene85754
      gene85752,gene85753,gene85754
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752,gene85753
      gene85752
      gene85752


      For those rows that are separated by ",", I want to keep everything after the first comma and before the second comma.
      This is my desired output:



      outgood.txt
      NA
      NA
      NA
      NA
      NA
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85753
      gene85752
      gene85752






      text-processing awk






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 hours ago









      Anna1364Anna1364

      454213




      454213




















          4 Answers
          4






          active

          oldest

          votes


















          14














          Since cut prints non-delimited lines by default the following works



          cut -f2 -d, file





          share|improve this answer


















          • 1





            It's nice when someone remember the little quirks of standard tools.

            – Kusalananda
            12 hours ago


















          2














          awk -F, 'NF > 1 $1 = $2 print $1 ' file


          This uses awk to parse the file as lines consisting of comma-delimited fields.



          The code detects when there is more than a single field on a line, and when there is, the first field is replaced by the second field. The first field, either unmodified or modified by the conditional code, is then printed.






          share|improve this answer























          • With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

            – glenn jackman
            10 hours ago











          • @glennjackman Well, the cut solution would be even faster in any case.

            – Kusalananda
            10 hours ago


















          1














          awk -F, 'NF == 1 print $1
          NF > 1 print $2' filename


          This will print just the first string if there is no comma, second string if there is one or more comma.






          share|improve this answer






























            0














            You can do this with Perl as follows.



            Command-line:



            $ perl -F, -pale '$_ = $F[1] // $_' out.txt


            Explanation:




            • -p will read records line-by-line AND autoprint before going in to read the next or eof.


            • -l makes IRS = ORS = "n"


            • -F, makes FS a comma.


            • -a splits each record $_ on the field separator, in our case a comma, and goes ahead and stores the fields so generated in the array @F, which is zero-indexed.


            • -e implies, what follows it is the Perl code, which shall be gets applied to each record.


            • $_ = $F[1] // $_ expression reads as follows: if the 2nd field $F[1] isn't defined, use the current record $_. And then the result of this expression is assigned to the current record $_.

            • owing to the -p switch of perl being in use, before the new record is read in, the current record is taken to stdout.

            Result:



            NA
            NA
            NA
            NA
            NA
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85753
            gene85752
            gene85752


            You may also do it with the GNU version of the sed editor as shown below:



            $ sed -ne '
            s/,/n/
            s/.*n//
            s/,/n/
            P
            ' out.txt





            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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              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%2f511284%2fextract-characters-between-two-commas%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              14














              Since cut prints non-delimited lines by default the following works



              cut -f2 -d, file





              share|improve this answer


















              • 1





                It's nice when someone remember the little quirks of standard tools.

                – Kusalananda
                12 hours ago















              14














              Since cut prints non-delimited lines by default the following works



              cut -f2 -d, file





              share|improve this answer


















              • 1





                It's nice when someone remember the little quirks of standard tools.

                – Kusalananda
                12 hours ago













              14












              14








              14







              Since cut prints non-delimited lines by default the following works



              cut -f2 -d, file





              share|improve this answer













              Since cut prints non-delimited lines by default the following works



              cut -f2 -d, file






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 12 hours ago









              iruvariruvar

              12.4k63063




              12.4k63063







              • 1





                It's nice when someone remember the little quirks of standard tools.

                – Kusalananda
                12 hours ago












              • 1





                It's nice when someone remember the little quirks of standard tools.

                – Kusalananda
                12 hours ago







              1




              1





              It's nice when someone remember the little quirks of standard tools.

              – Kusalananda
              12 hours ago





              It's nice when someone remember the little quirks of standard tools.

              – Kusalananda
              12 hours ago













              2














              awk -F, 'NF > 1 $1 = $2 print $1 ' file


              This uses awk to parse the file as lines consisting of comma-delimited fields.



              The code detects when there is more than a single field on a line, and when there is, the first field is replaced by the second field. The first field, either unmodified or modified by the conditional code, is then printed.






              share|improve this answer























              • With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

                – glenn jackman
                10 hours ago











              • @glennjackman Well, the cut solution would be even faster in any case.

                – Kusalananda
                10 hours ago















              2














              awk -F, 'NF > 1 $1 = $2 print $1 ' file


              This uses awk to parse the file as lines consisting of comma-delimited fields.



              The code detects when there is more than a single field on a line, and when there is, the first field is replaced by the second field. The first field, either unmodified or modified by the conditional code, is then printed.






              share|improve this answer























              • With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

                – glenn jackman
                10 hours ago











              • @glennjackman Well, the cut solution would be even faster in any case.

                – Kusalananda
                10 hours ago













              2












              2








              2







              awk -F, 'NF > 1 $1 = $2 print $1 ' file


              This uses awk to parse the file as lines consisting of comma-delimited fields.



              The code detects when there is more than a single field on a line, and when there is, the first field is replaced by the second field. The first field, either unmodified or modified by the conditional code, is then printed.






              share|improve this answer













              awk -F, 'NF > 1 $1 = $2 print $1 ' file


              This uses awk to parse the file as lines consisting of comma-delimited fields.



              The code detects when there is more than a single field on a line, and when there is, the first field is replaced by the second field. The first field, either unmodified or modified by the conditional code, is then printed.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 12 hours ago









              KusalanandaKusalananda

              140k17261435




              140k17261435












              • With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

                – glenn jackman
                10 hours ago











              • @glennjackman Well, the cut solution would be even faster in any case.

                – Kusalananda
                10 hours ago

















              • With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

                – glenn jackman
                10 hours ago











              • @glennjackman Well, the cut solution would be even faster in any case.

                – Kusalananda
                10 hours ago
















              With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

              – glenn jackman
              10 hours ago





              With a big file, this would probably be faster: awk -F, 'print(NF>1 ? $2 : $1)' -- since you won't have to rewrite $0

              – glenn jackman
              10 hours ago













              @glennjackman Well, the cut solution would be even faster in any case.

              – Kusalananda
              10 hours ago





              @glennjackman Well, the cut solution would be even faster in any case.

              – Kusalananda
              10 hours ago











              1














              awk -F, 'NF == 1 print $1
              NF > 1 print $2' filename


              This will print just the first string if there is no comma, second string if there is one or more comma.






              share|improve this answer



























                1














                awk -F, 'NF == 1 print $1
                NF > 1 print $2' filename


                This will print just the first string if there is no comma, second string if there is one or more comma.






                share|improve this answer

























                  1












                  1








                  1







                  awk -F, 'NF == 1 print $1
                  NF > 1 print $2' filename


                  This will print just the first string if there is no comma, second string if there is one or more comma.






                  share|improve this answer













                  awk -F, 'NF == 1 print $1
                  NF > 1 print $2' filename


                  This will print just the first string if there is no comma, second string if there is one or more comma.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 12 hours ago









                  unxnutunxnut

                  3,80721120




                  3,80721120





















                      0














                      You can do this with Perl as follows.



                      Command-line:



                      $ perl -F, -pale '$_ = $F[1] // $_' out.txt


                      Explanation:




                      • -p will read records line-by-line AND autoprint before going in to read the next or eof.


                      • -l makes IRS = ORS = "n"


                      • -F, makes FS a comma.


                      • -a splits each record $_ on the field separator, in our case a comma, and goes ahead and stores the fields so generated in the array @F, which is zero-indexed.


                      • -e implies, what follows it is the Perl code, which shall be gets applied to each record.


                      • $_ = $F[1] // $_ expression reads as follows: if the 2nd field $F[1] isn't defined, use the current record $_. And then the result of this expression is assigned to the current record $_.

                      • owing to the -p switch of perl being in use, before the new record is read in, the current record is taken to stdout.

                      Result:



                      NA
                      NA
                      NA
                      NA
                      NA
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85753
                      gene85752
                      gene85752


                      You may also do it with the GNU version of the sed editor as shown below:



                      $ sed -ne '
                      s/,/n/
                      s/.*n//
                      s/,/n/
                      P
                      ' out.txt





                      share|improve this answer



























                        0














                        You can do this with Perl as follows.



                        Command-line:



                        $ perl -F, -pale '$_ = $F[1] // $_' out.txt


                        Explanation:




                        • -p will read records line-by-line AND autoprint before going in to read the next or eof.


                        • -l makes IRS = ORS = "n"


                        • -F, makes FS a comma.


                        • -a splits each record $_ on the field separator, in our case a comma, and goes ahead and stores the fields so generated in the array @F, which is zero-indexed.


                        • -e implies, what follows it is the Perl code, which shall be gets applied to each record.


                        • $_ = $F[1] // $_ expression reads as follows: if the 2nd field $F[1] isn't defined, use the current record $_. And then the result of this expression is assigned to the current record $_.

                        • owing to the -p switch of perl being in use, before the new record is read in, the current record is taken to stdout.

                        Result:



                        NA
                        NA
                        NA
                        NA
                        NA
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85753
                        gene85752
                        gene85752


                        You may also do it with the GNU version of the sed editor as shown below:



                        $ sed -ne '
                        s/,/n/
                        s/.*n//
                        s/,/n/
                        P
                        ' out.txt





                        share|improve this answer

























                          0












                          0








                          0







                          You can do this with Perl as follows.



                          Command-line:



                          $ perl -F, -pale '$_ = $F[1] // $_' out.txt


                          Explanation:




                          • -p will read records line-by-line AND autoprint before going in to read the next or eof.


                          • -l makes IRS = ORS = "n"


                          • -F, makes FS a comma.


                          • -a splits each record $_ on the field separator, in our case a comma, and goes ahead and stores the fields so generated in the array @F, which is zero-indexed.


                          • -e implies, what follows it is the Perl code, which shall be gets applied to each record.


                          • $_ = $F[1] // $_ expression reads as follows: if the 2nd field $F[1] isn't defined, use the current record $_. And then the result of this expression is assigned to the current record $_.

                          • owing to the -p switch of perl being in use, before the new record is read in, the current record is taken to stdout.

                          Result:



                          NA
                          NA
                          NA
                          NA
                          NA
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85752
                          gene85752


                          You may also do it with the GNU version of the sed editor as shown below:



                          $ sed -ne '
                          s/,/n/
                          s/.*n//
                          s/,/n/
                          P
                          ' out.txt





                          share|improve this answer













                          You can do this with Perl as follows.



                          Command-line:



                          $ perl -F, -pale '$_ = $F[1] // $_' out.txt


                          Explanation:




                          • -p will read records line-by-line AND autoprint before going in to read the next or eof.


                          • -l makes IRS = ORS = "n"


                          • -F, makes FS a comma.


                          • -a splits each record $_ on the field separator, in our case a comma, and goes ahead and stores the fields so generated in the array @F, which is zero-indexed.


                          • -e implies, what follows it is the Perl code, which shall be gets applied to each record.


                          • $_ = $F[1] // $_ expression reads as follows: if the 2nd field $F[1] isn't defined, use the current record $_. And then the result of this expression is assigned to the current record $_.

                          • owing to the -p switch of perl being in use, before the new record is read in, the current record is taken to stdout.

                          Result:



                          NA
                          NA
                          NA
                          NA
                          NA
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85753
                          gene85752
                          gene85752


                          You may also do it with the GNU version of the sed editor as shown below:



                          $ sed -ne '
                          s/,/n/
                          s/.*n//
                          s/,/n/
                          P
                          ' out.txt






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 57 mins ago









                          Rakesh SharmaRakesh Sharma

                          262




                          262



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511284%2fextract-characters-between-two-commas%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                              Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                              How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2