newbie Q : How to read an output file in one command line Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How can I fix my problems with fonts in Firefox?How can one make Firefox ignore my GTK theme entirely?Configuring Firefox to use a proxy from the command lineHow to install Firefox addon from command line in scripts?I lost the “global menu bar integration” firefox addonwhat is the command to restart firefox from the command line?Error while using command line command to load firefox in lubuntu 14.04Reset firefox from command lineLauch Firefox Developer Edition using command-lineFirefox Quantum : HTML files from internal storage (/usr) do not open

Releasing Patch File for BSD3 Licensed Project

Centre cell contents vertically

Fit odd number of triplets in a measure?

Determine whether an integer is a palindrome

A proverb that is used to imply that you have unexpectedly faced a big problem

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

First paper to introduce the "principal-agent problem"

Problem with display of presentation

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

When does a function NOT have an antiderivative?

Did any compiler fully use 80-bit floating point?

Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?

By what mechanism was the 2017 General Election called?

The Nth Gryphon Number

Noise in Eigenvalues plot

Does the universe have a fixed centre of mass?

Sally's older brother

Does the transliteration of 'Dravidian' exist in Hindu scripture? Does 'Dravida' refer to a Geographical area or an ethnic group?

How does TikZ render an arc?

Should man-made satellites feature an intelligent inverted "cow catcher"?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

Why can't fire hurt Daenerys but it did to Jon Snow in season 1?

How to ask rejected full-time candidates to apply to teach individual courses?

The test team as an enemy of development? And how can this be avoided?



newbie Q : How to read an output file in one command line



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How can I fix my problems with fonts in Firefox?How can one make Firefox ignore my GTK theme entirely?Configuring Firefox to use a proxy from the command lineHow to install Firefox addon from command line in scripts?I lost the “global menu bar integration” firefox addonwhat is the command to restart firefox from the command line?Error while using command line command to load firefox in lubuntu 14.04Reset firefox from command lineLauch Firefox Developer Edition using command-lineFirefox Quantum : HTML files from internal storage (/usr) do not open



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








2















how to do something like this correctly




$: lshw -html > /tmp/specs.html < firefox




also tried




$: firefox < "lshw -html > /tmp/specs.html"




thanks










share|improve this question







New contributor




Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • In zsh you could do firefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.

    – Sebastian Stark
    16 mins ago












  • check this (the "data uri" answer) for a way how to do it in bash: unix.stackexchange.com/questions/24931/… Nice and ugly trick.

    – Sebastian Stark
    10 mins ago


















2















how to do something like this correctly




$: lshw -html > /tmp/specs.html < firefox




also tried




$: firefox < "lshw -html > /tmp/specs.html"




thanks










share|improve this question







New contributor




Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • In zsh you could do firefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.

    – Sebastian Stark
    16 mins ago












  • check this (the "data uri" answer) for a way how to do it in bash: unix.stackexchange.com/questions/24931/… Nice and ugly trick.

    – Sebastian Stark
    10 mins ago














2












2








2








how to do something like this correctly




$: lshw -html > /tmp/specs.html < firefox




also tried




$: firefox < "lshw -html > /tmp/specs.html"




thanks










share|improve this question







New contributor




Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












how to do something like this correctly




$: lshw -html > /tmp/specs.html < firefox




also tried




$: firefox < "lshw -html > /tmp/specs.html"




thanks







firefox






share|improve this question







New contributor




Mostafa Esmail 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




Mostafa Esmail 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




Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 49 mins ago









Mostafa EsmailMostafa Esmail

111




111




New contributor




Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mostafa Esmail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • In zsh you could do firefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.

    – Sebastian Stark
    16 mins ago












  • check this (the "data uri" answer) for a way how to do it in bash: unix.stackexchange.com/questions/24931/… Nice and ugly trick.

    – Sebastian Stark
    10 mins ago


















  • In zsh you could do firefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.

    – Sebastian Stark
    16 mins ago












  • check this (the "data uri" answer) for a way how to do it in bash: unix.stackexchange.com/questions/24931/… Nice and ugly trick.

    – Sebastian Stark
    10 mins ago

















In zsh you could do firefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.

– Sebastian Stark
16 mins ago






In zsh you could do firefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.

– Sebastian Stark
16 mins ago














check this (the "data uri" answer) for a way how to do it in bash: unix.stackexchange.com/questions/24931/… Nice and ugly trick.

– Sebastian Stark
10 mins ago






check this (the "data uri" answer) for a way how to do it in bash: unix.stackexchange.com/questions/24931/… Nice and ugly trick.

– Sebastian Stark
10 mins ago











1 Answer
1






active

oldest

votes


















2














You should output lshw to a file, and open that file with firefox, as follows:



lshw -html >/tmp/specs.html && firefox /tmp/specs.html


Or



sudo lshw -html >/tmp/specs.html && firefox /tmp/specs.html





share|improve this answer























  • thanks for the answer , but I don't want to write the filename again

    – Mostafa Esmail
    28 mins ago












  • I mean , I want to use the output file "specs.html" as an input for the command firefox

    – Mostafa Esmail
    18 mins 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
);



);






Mostafa Esmail 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%2f1135887%2fnewbie-q-how-to-read-an-output-file-in-one-command-line%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









2














You should output lshw to a file, and open that file with firefox, as follows:



lshw -html >/tmp/specs.html && firefox /tmp/specs.html


Or



sudo lshw -html >/tmp/specs.html && firefox /tmp/specs.html





share|improve this answer























  • thanks for the answer , but I don't want to write the filename again

    – Mostafa Esmail
    28 mins ago












  • I mean , I want to use the output file "specs.html" as an input for the command firefox

    – Mostafa Esmail
    18 mins ago















2














You should output lshw to a file, and open that file with firefox, as follows:



lshw -html >/tmp/specs.html && firefox /tmp/specs.html


Or



sudo lshw -html >/tmp/specs.html && firefox /tmp/specs.html





share|improve this answer























  • thanks for the answer , but I don't want to write the filename again

    – Mostafa Esmail
    28 mins ago












  • I mean , I want to use the output file "specs.html" as an input for the command firefox

    – Mostafa Esmail
    18 mins ago













2












2








2







You should output lshw to a file, and open that file with firefox, as follows:



lshw -html >/tmp/specs.html && firefox /tmp/specs.html


Or



sudo lshw -html >/tmp/specs.html && firefox /tmp/specs.html





share|improve this answer













You should output lshw to a file, and open that file with firefox, as follows:



lshw -html >/tmp/specs.html && firefox /tmp/specs.html


Or



sudo lshw -html >/tmp/specs.html && firefox /tmp/specs.html






share|improve this answer












share|improve this answer



share|improve this answer










answered 41 mins ago









LeonidMewLeonidMew

1,108624




1,108624












  • thanks for the answer , but I don't want to write the filename again

    – Mostafa Esmail
    28 mins ago












  • I mean , I want to use the output file "specs.html" as an input for the command firefox

    – Mostafa Esmail
    18 mins ago

















  • thanks for the answer , but I don't want to write the filename again

    – Mostafa Esmail
    28 mins ago












  • I mean , I want to use the output file "specs.html" as an input for the command firefox

    – Mostafa Esmail
    18 mins ago
















thanks for the answer , but I don't want to write the filename again

– Mostafa Esmail
28 mins ago






thanks for the answer , but I don't want to write the filename again

– Mostafa Esmail
28 mins ago














I mean , I want to use the output file "specs.html" as an input for the command firefox

– Mostafa Esmail
18 mins ago





I mean , I want to use the output file "specs.html" as an input for the command firefox

– Mostafa Esmail
18 mins ago










Mostafa Esmail is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Mostafa Esmail is a new contributor. Be nice, and check out our Code of Conduct.












Mostafa Esmail is a new contributor. Be nice, and check out our Code of Conduct.











Mostafa Esmail 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%2f1135887%2fnewbie-q-how-to-read-an-output-file-in-one-command-line%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

Era Viking Índice Início da Era Viquingue | Cotidiano | Sociedade | Língua | Religião | A arte | As primeiras cidades | As viagens dos viquingues | Viquingues do Oeste e Leste | Fim da Era Viquingue | Fontes históricas | Referências Bibliografia | Ligações externas | Menu de navegação«Sverige då!»«Handel I vikingetid»«O que é Nórdico Antigo»Mito, magia e religião na volsunga saga Um olhar sobre a trajetória mítica do herói sigurd«Bonden var den verklige vikingen»«Vikingatiden»«Vikingatiden»«Vinland»«Guerreiras de Óðinn: As Valkyrjor na Mitologia Viking»1519-9053«Esculpindo símbolos e seres: A arte viking em pedras rúnicas»1679-9313Historia - Tema: VikingarnaAventura e Magia no Mundo das Sagas IslandesasEra Vikinge

What's the metal clinking sound at the end of credits in Avengers: Endgame?What makes Thanos so strong in Avengers: Endgame?Who is the character that appears at the end of Endgame?What happens to Mjolnir (Thor's hammer) at the end of Endgame?The People's Ages in Avengers: EndgameWhat did Nebula do in Avengers: Endgame?Messing with time in the Avengers: Endgame climaxAvengers: Endgame timelineWhat are the time-travel rules in Avengers Endgame?Why use this song in Avengers: Endgame Opening Logo Sequence?Peggy's age in Avengers Endgame

Are there legal definitions of ethnicities/races? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Legal definitions in the United StatesAre there truly legal limits on US interest rates?Are gender identity and sexual orientation federally protected?Why is there an apparent legal bias against digital services?What limits are there to the powers of individual judges in the United States legal system?Are women only scholarships legal under Irish / EU law?Is the term “race” defined by Public Law enacted by Congress of the United StatesIs there a legal definition of race in the US?Neighbors are spying for landlord on Renters is it legal?Are Protected Classes Bi-directional?