Translate text contents of an existing file from lower to upper case and copy to a new fileRunning a program that has no extensionCopying file from folder 1 to folder 2 in terminalIs there a command line tool that allows online search for linux commands?How to create an alias that will open file in Brackets?How to cut some text from several files, replace them with names and some more?How do I find and copy an arbitrary list of files in terminal?How to bulk convert html content of eml files to doc (Word) filesHow does “less” switch to the text, then back to the prompt?“Copy and Paste into Terminal” Option in Firefox/Nautilus Context Menu for Highlighted Textdisable select to copy

What term is being referred to with "reflected-sound-of-underground-spirits"?

How to fry ground beef so it is well-browned

Phrase for the opposite of "foolproof"

Does a large simulator bay have standard public address announcements?

How to pronounce 'c++' in Spanish

Is it idiomatic to construct against `this`

Get consecutive integer number ranges from list of int

What is causing the white spot to appear in some of my pictures

infinitely many negative and infinitely many positive numbers

Implications of cigar-shaped bodies having rings?

Pulling the rope with one hand is as heavy as with two hands?

Is the claim "Employers won't employ people with no 'social media presence'" realistic?

Minor Revision with suggestion of an alternative proof by reviewer

Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?

Can SQL Server create collisions in system generated constraint names?

What makes accurate emulation of old systems a difficult task?

Apply MapThread to all but one variable

Is Diceware more secure than a long passphrase?

How do I check if a string is entirely made of the same substring?

What happens to Mjolnir (Thor's hammer) at the end of Endgame?

Aliens crash on Earth and go into stasis to wait for technology to fix their ship

How to denote matrix elements succinctly?

What are the steps to solving this definite integral?

Map of water taps to fill bottles



Translate text contents of an existing file from lower to upper case and copy to a new file


Running a program that has no extensionCopying file from folder 1 to folder 2 in terminalIs there a command line tool that allows online search for linux commands?How to create an alias that will open file in Brackets?How to cut some text from several files, replace them with names and some more?How do I find and copy an arbitrary list of files in terminal?How to bulk convert html content of eml files to doc (Word) filesHow does “less” switch to the text, then back to the prompt?“Copy and Paste into Terminal” Option in Firefox/Nautilus Context Menu for Highlighted Textdisable select to copy






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








2















So I'm wanting to find out what the command line would look like to copy the text contained in a file, convert the whole thing to upper-case and paste that into a new file with a given name.



I'm very new to Linux so I've been running through a few lists of commands and existing questions but I couldn't find anything which answered this.



Thanks










share|improve this question







New contributor




True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    2















    So I'm wanting to find out what the command line would look like to copy the text contained in a file, convert the whole thing to upper-case and paste that into a new file with a given name.



    I'm very new to Linux so I've been running through a few lists of commands and existing questions but I couldn't find anything which answered this.



    Thanks










    share|improve this question







    New contributor




    True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      2












      2








      2








      So I'm wanting to find out what the command line would look like to copy the text contained in a file, convert the whole thing to upper-case and paste that into a new file with a given name.



      I'm very new to Linux so I've been running through a few lists of commands and existing questions but I couldn't find anything which answered this.



      Thanks










      share|improve this question







      New contributor




      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      So I'm wanting to find out what the command line would look like to copy the text contained in a file, convert the whole thing to upper-case and paste that into a new file with a given name.



      I'm very new to Linux so I've been running through a few lists of commands and existing questions but I couldn't find anything which answered this.



      Thanks







      command-line copy convert






      share|improve this question







      New contributor




      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Apr 23 at 14:54









      True_False_AX10MTrue_False_AX10M

      163




      163




      New contributor




      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      True_False_AX10M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          5














          The following command can do that



          tr '[:lower:]' '[:upper:]' < input.txt > output.txt





          share|improve this answer























          • Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

            – True_False_AX10M
            Apr 23 at 15:27











          • yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

            – aviral dobhal
            Apr 23 at 15:39











          • @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

            – Barmar
            Apr 23 at 19:21











          • @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

            – True_False_AX10M
            2 days ago











          • @aviral dobhal thanks for the help!

            – True_False_AX10M
            2 days ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          );



          );






          True_False_AX10M is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1136417%2ftranslate-text-contents-of-an-existing-file-from-lower-to-upper-case-and-copy-to%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          The following command can do that



          tr '[:lower:]' '[:upper:]' < input.txt > output.txt





          share|improve this answer























          • Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

            – True_False_AX10M
            Apr 23 at 15:27











          • yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

            – aviral dobhal
            Apr 23 at 15:39











          • @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

            – Barmar
            Apr 23 at 19:21











          • @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

            – True_False_AX10M
            2 days ago











          • @aviral dobhal thanks for the help!

            – True_False_AX10M
            2 days ago















          5














          The following command can do that



          tr '[:lower:]' '[:upper:]' < input.txt > output.txt





          share|improve this answer























          • Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

            – True_False_AX10M
            Apr 23 at 15:27











          • yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

            – aviral dobhal
            Apr 23 at 15:39











          • @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

            – Barmar
            Apr 23 at 19:21











          • @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

            – True_False_AX10M
            2 days ago











          • @aviral dobhal thanks for the help!

            – True_False_AX10M
            2 days ago













          5












          5








          5







          The following command can do that



          tr '[:lower:]' '[:upper:]' < input.txt > output.txt





          share|improve this answer













          The following command can do that



          tr '[:lower:]' '[:upper:]' < input.txt > output.txt






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 23 at 15:00









          aviral dobhalaviral dobhal

          817




          817












          • Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

            – True_False_AX10M
            Apr 23 at 15:27











          • yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

            – aviral dobhal
            Apr 23 at 15:39











          • @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

            – Barmar
            Apr 23 at 19:21











          • @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

            – True_False_AX10M
            2 days ago











          • @aviral dobhal thanks for the help!

            – True_False_AX10M
            2 days ago

















          • Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

            – True_False_AX10M
            Apr 23 at 15:27











          • yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

            – aviral dobhal
            Apr 23 at 15:39











          • @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

            – Barmar
            Apr 23 at 19:21











          • @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

            – True_False_AX10M
            2 days ago











          • @aviral dobhal thanks for the help!

            – True_False_AX10M
            2 days ago
















          Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

          – True_False_AX10M
          Apr 23 at 15:27





          Thanks, just to check my understanding... if i had File1 and I wanted to create a new file called File2 with the translated text in it I would write: tr '[:lower:]' '[:upper:]' < File1 > File2 ?

          – True_False_AX10M
          Apr 23 at 15:27













          yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

          – aviral dobhal
          Apr 23 at 15:39





          yes it will translate all the text in file1 and create a file file2 with upper case converted text of the file1.

          – aviral dobhal
          Apr 23 at 15:39













          @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

          – Barmar
          Apr 23 at 19:21





          @True_False_AX10M Isn't your command identical to the answer, except for the filenames?

          – Barmar
          Apr 23 at 19:21













          @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

          – True_False_AX10M
          2 days ago





          @Barmar yes it is. I just wanted to ensure I was understanding the formatting correctly and that the input output bits I would simply replace with the file names.

          – True_False_AX10M
          2 days ago













          @aviral dobhal thanks for the help!

          – True_False_AX10M
          2 days ago





          @aviral dobhal thanks for the help!

          – True_False_AX10M
          2 days ago










          True_False_AX10M is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          True_False_AX10M is a new contributor. Be nice, and check out our Code of Conduct.












          True_False_AX10M is a new contributor. Be nice, and check out our Code of Conduct.











          True_False_AX10M is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1136417%2ftranslate-text-contents-of-an-existing-file-from-lower-to-upper-case-and-copy-to%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

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?