how to bold the characters using echo
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
required output of echo in bold letters
while using echo command I want the content to be bold and it should have same bold view while appending echo output to the file
echo "hi">test.txt
i want hi should be in bold in the test.txt file
scripts
add a comment |
required output of echo in bold letters
while using echo command I want the content to be bold and it should have same bold view while appending echo output to the file
echo "hi">test.txt
i want hi should be in bold in the test.txt file
scripts
A text file is just plain text, no font-formatting such as bold or italics. You'll need to use a different file format
– ElefantPhace
Aug 2 '14 at 3:39
@ElefantPhace:CAn you let me know while echo command when i append it to a file i need to see characters in bold which format would support it.
– user3867974
Aug 3 '14 at 10:01
You can't do it. Not in a plain text file.
– ElefantPhace
Aug 3 '14 at 13:01
add a comment |
required output of echo in bold letters
while using echo command I want the content to be bold and it should have same bold view while appending echo output to the file
echo "hi">test.txt
i want hi should be in bold in the test.txt file
scripts
required output of echo in bold letters
while using echo command I want the content to be bold and it should have same bold view while appending echo output to the file
echo "hi">test.txt
i want hi should be in bold in the test.txt file
scripts
scripts
asked Aug 2 '14 at 3:22
user3867974user3867974
723
723
A text file is just plain text, no font-formatting such as bold or italics. You'll need to use a different file format
– ElefantPhace
Aug 2 '14 at 3:39
@ElefantPhace:CAn you let me know while echo command when i append it to a file i need to see characters in bold which format would support it.
– user3867974
Aug 3 '14 at 10:01
You can't do it. Not in a plain text file.
– ElefantPhace
Aug 3 '14 at 13:01
add a comment |
A text file is just plain text, no font-formatting such as bold or italics. You'll need to use a different file format
– ElefantPhace
Aug 2 '14 at 3:39
@ElefantPhace:CAn you let me know while echo command when i append it to a file i need to see characters in bold which format would support it.
– user3867974
Aug 3 '14 at 10:01
You can't do it. Not in a plain text file.
– ElefantPhace
Aug 3 '14 at 13:01
A text file is just plain text, no font-formatting such as bold or italics. You'll need to use a different file format
– ElefantPhace
Aug 2 '14 at 3:39
A text file is just plain text, no font-formatting such as bold or italics. You'll need to use a different file format
– ElefantPhace
Aug 2 '14 at 3:39
@ElefantPhace:CAn you let me know while echo command when i append it to a file i need to see characters in bold which format would support it.
– user3867974
Aug 3 '14 at 10:01
@ElefantPhace:CAn you let me know while echo command when i append it to a file i need to see characters in bold which format would support it.
– user3867974
Aug 3 '14 at 10:01
You can't do it. Not in a plain text file.
– ElefantPhace
Aug 3 '14 at 13:01
You can't do it. Not in a plain text file.
– ElefantPhace
Aug 3 '14 at 13:01
add a comment |
1 Answer
1
active
oldest
votes
.txt
is a raw text format: you can't use any type of text-formatting.
Some "generic" conventions are **Bold**
and *italic*
because a lot of markdown will interpret these as bold and italic.
Another thing that could be usefull to display a bold text is to use bash. But it will of course only work in you display the .txt
in a bash-terminal. For this, you can use something like echo -e "33[1mThis text is bold"
, but it will be copied 'as it' in the .txt
file.
An easier option in bash would be to useecho $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
|
show 1 more comment
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
});
}
});
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%2f505701%2fhow-to-bold-the-characters-using-echo%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
.txt
is a raw text format: you can't use any type of text-formatting.
Some "generic" conventions are **Bold**
and *italic*
because a lot of markdown will interpret these as bold and italic.
Another thing that could be usefull to display a bold text is to use bash. But it will of course only work in you display the .txt
in a bash-terminal. For this, you can use something like echo -e "33[1mThis text is bold"
, but it will be copied 'as it' in the .txt
file.
An easier option in bash would be to useecho $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
|
show 1 more comment
.txt
is a raw text format: you can't use any type of text-formatting.
Some "generic" conventions are **Bold**
and *italic*
because a lot of markdown will interpret these as bold and italic.
Another thing that could be usefull to display a bold text is to use bash. But it will of course only work in you display the .txt
in a bash-terminal. For this, you can use something like echo -e "33[1mThis text is bold"
, but it will be copied 'as it' in the .txt
file.
An easier option in bash would be to useecho $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
|
show 1 more comment
.txt
is a raw text format: you can't use any type of text-formatting.
Some "generic" conventions are **Bold**
and *italic*
because a lot of markdown will interpret these as bold and italic.
Another thing that could be usefull to display a bold text is to use bash. But it will of course only work in you display the .txt
in a bash-terminal. For this, you can use something like echo -e "33[1mThis text is bold"
, but it will be copied 'as it' in the .txt
file.
.txt
is a raw text format: you can't use any type of text-formatting.
Some "generic" conventions are **Bold**
and *italic*
because a lot of markdown will interpret these as bold and italic.
Another thing that could be usefull to display a bold text is to use bash. But it will of course only work in you display the .txt
in a bash-terminal. For this, you can use something like echo -e "33[1mThis text is bold"
, but it will be copied 'as it' in the .txt
file.
answered Aug 2 '14 at 3:49
MrVaykadjiMrVaykadji
3,98722152
3,98722152
An easier option in bash would be to useecho $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
|
show 1 more comment
An easier option in bash would be to useecho $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
An easier option in bash would be to use
echo $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
An easier option in bash would be to use
echo $(tput bold)This is bold
– ElefantPhace
Aug 2 '14 at 3:52
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
Yes the above code in terminal makes it bold but when same is appendind to a text file it shows as its is.so i want to see same bold ouput inside a file..
– user3867974
Aug 3 '14 at 9:44
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
@ElefantPhace:the output inside file shows as [1m this is bold
– user3867974
Aug 3 '14 at 9:46
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
Hi @ElefantPhace:its same while running the tput has same issue I am able to see characters [1m hi inside a.txt file code ran is as below. echo $(tput bold) hi>a.text
– user3867974
Aug 3 '14 at 9:53
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
".txt is a raw text format: you can't use any type of text-formatting." The first line of my answer.
– MrVaykadji
Aug 3 '14 at 10:59
|
show 1 more comment
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%2f505701%2fhow-to-bold-the-characters-using-echo%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
A text file is just plain text, no font-formatting such as bold or italics. You'll need to use a different file format
– ElefantPhace
Aug 2 '14 at 3:39
@ElefantPhace:CAn you let me know while echo command when i append it to a file i need to see characters in bold which format would support it.
– user3867974
Aug 3 '14 at 10:01
You can't do it. Not in a plain text file.
– ElefantPhace
Aug 3 '14 at 13:01