Prevent awk from removing “” in variableawk: forcing a return status?awk with if statementsAwk: if and...

Why does NASA publish all the results/data it gets?

Which museums have artworks of all four ninja turtles' namesakes?

What is a Heptagon Number™?

use of the disk command

How to create a grid following points in QGIS?

Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?

In a jam session, when asked which key my non-transposing instrument (like a violin) is in, what do I answer?

How to make interviewee comfortable interviewing in lounge chairs

Repeat elements in list, but the number of times each element is repeated is provided by a separate list

Apple Developer Program Refund Help

Minimize taxes now that I earn more

What was the deeper meaning of Hermione wanting the cloak?

Are actors contractually obligated to certain things like going nude/ Sensual Scenes/ Gory Scenes?

I reverse the source code, you negate the input!

What is the need of methods like GET and POST in the HTTP protocol?

Gas leaking in base of new gas range?

How use custom order in folder on Windows 7 and 10

Can someone explain to me the parameters of a lognormal distribution?

How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?

Why are some of the Stunts in The Expanse RPG labelled 'Core'?

Resolving moral conflict

How to influence manager to not schedule team meetings during lunch?

The 100 soldier problem

Is there any reason nowadays to use a neon indicator lamp instead of an LED?



Prevent awk from removing “” in variable


awk: forcing a return status?awk with if statementsAwk: if and conditional statement in same blockExternal commands in AWKHow can I call a bash function in bash script inside awk?Trouble pasting specific fields using awkprocessing multiple files with awk problemAWK csv manipulation






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







0















I have this line of code for the shell:



ls -1 *.mp3| awk -v here="$(cygpath -w $PWD)" -v source="$source" '{print "File Name: "$0"n"here"n"source}'


Unfortunately it outputs:



File Name: Data 00053.mp3
C:UsersathenaWorkProject_10.MBT
Source: Converted from RAW


This line C:UsersathenaWorkProject_10.MBT
Should be C:UsersathenaWorkProject_100.MBT



I am now lost, a lot to learn here.









share

































    0















    I have this line of code for the shell:



    ls -1 *.mp3| awk -v here="$(cygpath -w $PWD)" -v source="$source" '{print "File Name: "$0"n"here"n"source}'


    Unfortunately it outputs:



    File Name: Data 00053.mp3
    C:UsersathenaWorkProject_10.MBT
    Source: Converted from RAW


    This line C:UsersathenaWorkProject_10.MBT
    Should be C:UsersathenaWorkProject_100.MBT



    I am now lost, a lot to learn here.









    share





























      0












      0








      0








      I have this line of code for the shell:



      ls -1 *.mp3| awk -v here="$(cygpath -w $PWD)" -v source="$source" '{print "File Name: "$0"n"here"n"source}'


      Unfortunately it outputs:



      File Name: Data 00053.mp3
      C:UsersathenaWorkProject_10.MBT
      Source: Converted from RAW


      This line C:UsersathenaWorkProject_10.MBT
      Should be C:UsersathenaWorkProject_100.MBT



      I am now lost, a lot to learn here.









      share
















      I have this line of code for the shell:



      ls -1 *.mp3| awk -v here="$(cygpath -w $PWD)" -v source="$source" '{print "File Name: "$0"n"here"n"source}'


      Unfortunately it outputs:



      File Name: Data 00053.mp3
      C:UsersathenaWorkProject_10.MBT
      Source: Converted from RAW


      This line C:UsersathenaWorkProject_10.MBT
      Should be C:UsersathenaWorkProject_100.MBT



      I am now lost, a lot to learn here.







      bash awk





      share














      share












      share



      share








      edited 3 mins ago









      Stephen Kitt

      204k27 gold badges485 silver badges553 bronze badges




      204k27 gold badges485 silver badges553 bronze badges










      asked 5 mins ago









      Ken IngramKen Ingram

      1235 bronze badges




      1235 bronze badges

























          0






          active

          oldest

          votes














          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/4.0/"u003ecc by-sa 4.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%2f542560%2fprevent-awk-from-removing-in-variable%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

















          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%2f542560%2fprevent-awk-from-removing-in-variable%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...