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

Why did Israel vote against lifting the American embargo on Cuba?

All ASCII characters with a given bit count

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

TV series episode where humans nuke aliens before decrypting their message that states they come in peace

Simulate round-robin tournament draw

Retract an already submitted Recommendation Letter (written for an undergrad student)

Suing a Police Officer Instead of the Police Department

How would you suggest I follow up with coworkers about our deadline that's today?

Israeli soda type drink

What do you call an IPA symbol that lacks a name (e.g. ɲ)?

Where/What are Arya's scars from?

Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?

What is the definining line between a helicopter and a drone a person can ride in?

What helicopter has the most rotor blades?

Is it OK if I do not take the receipt in Germany?

Like totally amazing interchangeable sister outfit accessory swapping or whatever

What is a 'Key' in computer science?

Can gravitational waves pass through a black hole?

Why isPrototypeOf() returns false?

Will I be more secure with my own router behind my ISP's router?

Where to find documentation for `whois` command options?

Are there existing rules/lore for MTG planeswalkers?

Processing ADC conversion result: DMA vs Processor Registers

What is the numbering system used for the DSN dishes?



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



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraRunning 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 13 hours ago









      True_False_AX10MTrue_False_AX10M

      112




      112




      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
            13 hours ago











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

            – aviral dobhal
            13 hours ago











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

            – Barmar
            9 hours 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
            13 hours ago











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

            – aviral dobhal
            13 hours ago











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

            – Barmar
            9 hours 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
            13 hours ago











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

            – aviral dobhal
            13 hours ago











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

            – Barmar
            9 hours 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 13 hours ago









          aviral dobhalaviral dobhal

          816




          816













          • 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
            13 hours ago











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

            – aviral dobhal
            13 hours ago











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

            – Barmar
            9 hours 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
            13 hours ago











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

            – aviral dobhal
            13 hours ago











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

            – Barmar
            9 hours 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
          13 hours 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
          13 hours ago













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

          – aviral dobhal
          13 hours ago





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

          – aviral dobhal
          13 hours ago













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

          – Barmar
          9 hours ago





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

          – Barmar
          9 hours 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

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...