how to bold the characters using echo





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







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










share|improve this question























  • 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




















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










share|improve this question























  • 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
















0












0








0


1






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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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





















  • 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












1 Answer
1






active

oldest

votes


















0














.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.






share|improve this answer
























  • 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











  • @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












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
});


}
});














draft saved

draft discarded


















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









0














.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.






share|improve this answer
























  • 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











  • @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
















0














.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.






share|improve this answer
























  • 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











  • @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














0












0








0







.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.






share|improve this answer













.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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 2 '14 at 3:49









MrVaykadjiMrVaykadji

3,98722152




3,98722152













  • 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











  • @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











  • 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


















draft saved

draft discarded




















































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%2f505701%2fhow-to-bold-the-characters-using-echo%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

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?