how to bold the characters using echo The Next CEO of Stack OverflowShell: echo Multi...

How do scammers retract money, while you can’t?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Why do professional authors make "consistency" mistakes? And how to avoid them?

Would a completely good Muggle be able to use a wand?

Why didn't Khan get resurrected in the Genesis Explosion?

How do I avoid eval and parse?

Can I run my washing machine drain line into a condensate pump so it drains better?

What was the first Unix version to run on a microcomputer?

Can we say or write : "No, it'sn't"?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

How did people program for Consoles with multiple CPUs?

Is 'diverse range' a pleonastic phrase?

Do I need to enable Dev Hub in my PROD Org?

What happened in Rome, when the western empire "fell"?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

How to safely derail a train during transit?

Make solar eclipses exceedingly rare, but still have new moons

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Inappropriate reference requests from Journal reviewers

How do we know the LHC results are robust?

What is "(CFMCC)" on an ILS approach chart?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

What can we do to stop prior company from asking us questions?

How powerful is the invisibility granted by the Gloom Stalker ranger's Umbral Sight feature?



how to bold the characters using echo



The Next CEO of Stack OverflowShell: echo Multi character stringMake echo ignore spaces?How to add line to file using terminalMysterious behavior of echo commandFind files with capital letters before the extension and lowercase letters in the extensionHow to change the filename when you add file into tar fileHow to find words with the same letters using a shell scriptHow to convert script command output into plain textecho command echo the blank output instead of Variable value in Ubuntu 18.04How to create multiple files(100 files) and they can contain 30 random characters in each of them using script












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














bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • 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














bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • 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





bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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,96722152




3,96722152













  • 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

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...