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;
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
command-line copy convert
New contributor
New contributor
New contributor
asked Apr 23 at 14:54
True_False_AX10MTrue_False_AX10M
163
163
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The following command can do that
tr '[:lower:]' '[:upper:]' < input.txt > output.txt
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
|
show 2 more comments
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
The following command can do that
tr '[:lower:]' '[:upper:]' < input.txt > output.txt
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
|
show 2 more comments
The following command can do that
tr '[:lower:]' '[:upper:]' < input.txt > output.txt
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
|
show 2 more comments
The following command can do that
tr '[:lower:]' '[:upper:]' < input.txt > output.txt
The following command can do that
tr '[:lower:]' '[:upper:]' < input.txt > output.txt
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
|
show 2 more comments
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
|
show 2 more comments
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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