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

Can two people see the same photon?

Why are current probes so expensive?

New Order #6: Easter Egg

Did pre-Columbian Americans know the spherical shape of the Earth?

Is this Half-dragon Quaggoth boss monster balanced?

How do you write "wild blueberries flavored"?

How does TikZ render an arc?

Understanding piped commands in GNU/Linux

What is the proper term for etching or digging of wall to hide conduit of cables

Where did Ptolemy compare the Earth to the distance of fixed stars?

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

NIntegrate on a solution of a matrix ODE

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

An isoperimetric-type inequality inside a cube

Is the time—manner—place ordering of adverbials an oversimplification?

Order between one to one functions and their inverses

Weaponising the Grasp-at-a-Distance spell

Where and when has Thucydides been studied?

How much damage would a cupful of neutron star matter do to the Earth?

Is there a verb for listening stealthily?

Did John Wesley plagiarize Matthew Henry...?

Problem with display of presentation

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

By what mechanism was the 2017 UK General Election called?



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
    2 hours 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
    2 hours ago












  • thanks , it worked . But the html appeared like as a source like this ?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="w3.org/1999/xhtml"> <head> <meta name="generator" content="lshw-B.02.18" /> <style type="text/css"> .first font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; .......

    – Mostafa Esmail
    1 hour 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
    2 hours 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
    2 hours ago












  • thanks , it worked . But the html appeared like as a source like this ?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="w3.org/1999/xhtml"> <head> <meta name="generator" content="lshw-B.02.18" /> <style type="text/css"> .first font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; .......

    – Mostafa Esmail
    1 hour 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 3 hours 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
    2 hours 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
    2 hours ago












  • thanks , it worked . But the html appeared like as a source like this ?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="w3.org/1999/xhtml"> <head> <meta name="generator" content="lshw-B.02.18" /> <style type="text/css"> .first font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; .......

    – Mostafa Esmail
    1 hour 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
    2 hours 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
    2 hours ago












  • thanks , it worked . But the html appeared like as a source like this ?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="w3.org/1999/xhtml"> <head> <meta name="generator" content="lshw-B.02.18" /> <style type="text/css"> .first font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; .......

    – Mostafa Esmail
    1 hour 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
2 hours 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
2 hours 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
2 hours 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
2 hours ago














thanks , it worked . But the html appeared like as a source like this ?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="w3.org/1999/xhtml"> <head> <meta name="generator" content="lshw-B.02.18" /> <style type="text/css"> .first font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; .......

– Mostafa Esmail
1 hour ago






thanks , it worked . But the html appeared like as a source like this ?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="w3.org/1999/xhtml"> <head> <meta name="generator" content="lshw-B.02.18" /> <style type="text/css"> .first font-weight: bold; margin-left: none; padding-right: 1em;vertical-align: top; .......

– Mostafa Esmail
1 hour 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
    2 hours ago












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

    – Mostafa Esmail
    2 hours ago











  • Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

    – Jules Lamur
    1 hour ago












  • thanks , but this is the same ,, you wrote $FILE twice

    – Mostafa Esmail
    32 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
    2 hours ago












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

    – Mostafa Esmail
    2 hours ago











  • Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

    – Jules Lamur
    1 hour ago












  • thanks , but this is the same ,, you wrote $FILE twice

    – Mostafa Esmail
    32 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
    2 hours ago












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

    – Mostafa Esmail
    2 hours ago











  • Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

    – Jules Lamur
    1 hour ago












  • thanks , but this is the same ,, you wrote $FILE twice

    – Mostafa Esmail
    32 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 2 hours ago









LeonidMewLeonidMew

1,108624




1,108624












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

    – Mostafa Esmail
    2 hours ago












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

    – Mostafa Esmail
    2 hours ago











  • Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

    – Jules Lamur
    1 hour ago












  • thanks , but this is the same ,, you wrote $FILE twice

    – Mostafa Esmail
    32 mins ago

















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

    – Mostafa Esmail
    2 hours ago












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

    – Mostafa Esmail
    2 hours ago











  • Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

    – Jules Lamur
    1 hour ago












  • thanks , but this is the same ,, you wrote $FILE twice

    – Mostafa Esmail
    32 mins ago
















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

– Mostafa Esmail
2 hours ago






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

– Mostafa Esmail
2 hours ago














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

– Mostafa Esmail
2 hours ago





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

– Mostafa Esmail
2 hours ago













Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

– Jules Lamur
1 hour ago






Would using a variable solve your issue? e.g. FILE="/tmp/specs.html"; lshw -html > $FILE && firefox $FILE.

– Jules Lamur
1 hour ago














thanks , but this is the same ,, you wrote $FILE twice

– Mostafa Esmail
32 mins ago





thanks , but this is the same ,, you wrote $FILE twice

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

Oświęcim Innehåll Historia | Källor | Externa länkar | Navigeringsmeny50°2′18″N 19°13′17″Ö / 50.03833°N 19.22139°Ö / 50.03833; 19.2213950°2′18″N 19°13′17″Ö / 50.03833°N 19.22139°Ö / 50.03833; 19.221393089658Nordisk familjebok, AuschwitzInsidan tro och existensJewish Community i OświęcimAuschwitz Jewish Center: MuseumAuschwitz Jewish Center

Valle di Casies Indice Geografia fisica | Origini del nome | Storia | Società | Amministrazione | Sport | Note | Bibliografia | Voci correlate | Altri progetti | Collegamenti esterni | Menu di navigazione46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)Sito istituzionaleAstat Censimento della popolazione 2011 - Determinazione della consistenza dei tre gruppi linguistici della Provincia Autonoma di Bolzano-Alto Adige - giugno 2012Numeri e fattiValle di CasiesDato IstatTabella dei gradi/giorno dei Comuni italiani raggruppati per Regione e Provincia26 agosto 1993, n. 412Heraldry of the World: GsiesStatistiche I.StatValCasies.comWikimedia CommonsWikimedia CommonsValle di CasiesSito ufficialeValle di CasiesMM14870458910042978-6

Typsetting diagram chases (with TikZ?) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to define the default vertical distance between nodes?Draw edge on arcNumerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to place nodes in an absolute coordinate system in tikzCommutative diagram with curve connecting between nodesTikz with standalone: pinning tikz coordinates to page cmDrawing a Decision Diagram with Tikz and layout manager