How to read an output file in one command line?Configuring Firefox to use a proxy from the command lineHow can I preview HTML documents from the command line?Output Directory Contents to Filewhat is the command to restart firefox from the command line?Error while using command line command to load firefox in lubuntu 14.04How to install certificates for command lineHow to make a line of directories with one command?Lauch Firefox Developer Edition using command-lineRun .sh file in one line commandCommand output to file with dynamic file name

You look catfish vs You look like a catfish

Can a creature tell when it has been affected by a Divination wizard's Portent?

Volunteering in England

How to replace the "space symbol" (squat-u) in listings?

I listed a wrong degree date on my background check. What will happen?

When did stoichiometry begin to be taught in U.S. high schools?

How to pass attribute when redirecting from lwc to aura component

Why do TACANs not have a symbol for compulsory reporting on IFR Enroute Low Altitude charts?

Python "triplet" dictionary?

How to back up a running remote server?

Was it really necessary for the Lunar Module to have 2 stages?

What does 「再々起」mean?

Need help understanding harmonic series and intervals

Pulling the rope with one hand is as heavy as with two hands?

How do I tell my manager that he's wrong?

Multiple options for Pseudonyms

Will tsunami waves travel forever if there was no land?

Transfer over $10k

Were there two appearances of Stan Lee?

Given what happens in Endgame, why doesn't Dormammu come back to attack the universe?

Feels like I am getting dragged in office politics

Unexpected email from Yorkshire Bank

What does "rf" mean in "rfkill"?

Minimum value of 4 digit number divided by sum of its digits



How to read an output file in one command line?


Configuring Firefox to use a proxy from the command lineHow can I preview HTML documents from the command line?Output Directory Contents to Filewhat is the command to restart firefox from the command line?Error while using command line command to load firefox in lubuntu 14.04How to install certificates for command lineHow to make a line of directories with one command?Lauch Firefox Developer Edition using command-lineRun .sh file in one line commandCommand output to file with dynamic file name






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









share|improve this question
























  • 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
    Apr 21 at 22:05












  • @SebastianStark data uri not working anymore, get blocking from top level navigation, due security bug

    – LeonidMew
    Apr 22 at 7:04

















2















How to do something like this correctly?



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


also tried



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









share|improve this question
























  • 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
    Apr 21 at 22:05












  • @SebastianStark data uri not working anymore, get blocking from top level navigation, due security bug

    – LeonidMew
    Apr 22 at 7:04













2












2








2








How to do something like this correctly?



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


also tried



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









share|improve this question
















How to do something like this correctly?



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


also tried



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






command-line firefox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 22 at 10:18









SurvivalMachine

1,4843920




1,4843920










asked Apr 21 at 20:55









Mostafa EsmailMostafa Esmail

142




142












  • 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
    Apr 21 at 22:05












  • @SebastianStark data uri not working anymore, get blocking from top level navigation, due security bug

    – LeonidMew
    Apr 22 at 7:04

















  • 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
    Apr 21 at 22:05












  • @SebastianStark data uri not working anymore, get blocking from top level navigation, due security bug

    – LeonidMew
    Apr 22 at 7:04
















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
Apr 21 at 22:05






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
Apr 21 at 22:05














@SebastianStark data uri not working anymore, get blocking from top level navigation, due security bug

– LeonidMew
Apr 22 at 7:04





@SebastianStark data uri not working anymore, get blocking from top level navigation, due security bug

– LeonidMew
Apr 22 at 7:04










1 Answer
1






active

oldest

votes


















6














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


Update: Following not uses temp files, but need bcat

Install bcat package:



sudo apt install ruby-bcat


Then the command you want is simple



lshw -html|bcat -b firefox


bcat help output:




Pipe to browser utility. Read standard input, possibly one or more
s, and write concatenated / formatted output to browser.







share|improve this answer

























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

    – Mostafa Esmail
    Apr 21 at 21:16












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

    – Mostafa Esmail
    Apr 21 at 21:26











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

    – Jules Lamur
    Apr 21 at 22:34












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

    – Mostafa Esmail
    Apr 21 at 23:28






  • 1





    @MostafaEsmail Updated answer. With bcat you don't need to write to file at all

    – LeonidMew
    Apr 22 at 7:16











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%2f1135887%2fhow-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









6














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


Update: Following not uses temp files, but need bcat

Install bcat package:



sudo apt install ruby-bcat


Then the command you want is simple



lshw -html|bcat -b firefox


bcat help output:




Pipe to browser utility. Read standard input, possibly one or more
s, and write concatenated / formatted output to browser.







share|improve this answer

























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

    – Mostafa Esmail
    Apr 21 at 21:16












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

    – Mostafa Esmail
    Apr 21 at 21:26











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

    – Jules Lamur
    Apr 21 at 22:34












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

    – Mostafa Esmail
    Apr 21 at 23:28






  • 1





    @MostafaEsmail Updated answer. With bcat you don't need to write to file at all

    – LeonidMew
    Apr 22 at 7:16















6














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


Update: Following not uses temp files, but need bcat

Install bcat package:



sudo apt install ruby-bcat


Then the command you want is simple



lshw -html|bcat -b firefox


bcat help output:




Pipe to browser utility. Read standard input, possibly one or more
s, and write concatenated / formatted output to browser.







share|improve this answer

























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

    – Mostafa Esmail
    Apr 21 at 21:16












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

    – Mostafa Esmail
    Apr 21 at 21:26











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

    – Jules Lamur
    Apr 21 at 22:34












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

    – Mostafa Esmail
    Apr 21 at 23:28






  • 1





    @MostafaEsmail Updated answer. With bcat you don't need to write to file at all

    – LeonidMew
    Apr 22 at 7:16













6












6








6







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


Update: Following not uses temp files, but need bcat

Install bcat package:



sudo apt install ruby-bcat


Then the command you want is simple



lshw -html|bcat -b firefox


bcat help output:




Pipe to browser utility. Read standard input, possibly one or more
s, and write concatenated / formatted output to browser.







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


Update: Following not uses temp files, but need bcat

Install bcat package:



sudo apt install ruby-bcat


Then the command you want is simple



lshw -html|bcat -b firefox


bcat help output:




Pipe to browser utility. Read standard input, possibly one or more
s, and write concatenated / formatted output to browser.








share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 22 at 8:07

























answered Apr 21 at 21:03









LeonidMewLeonidMew

1,340624




1,340624












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

    – Mostafa Esmail
    Apr 21 at 21:16












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

    – Mostafa Esmail
    Apr 21 at 21:26











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

    – Jules Lamur
    Apr 21 at 22:34












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

    – Mostafa Esmail
    Apr 21 at 23:28






  • 1





    @MostafaEsmail Updated answer. With bcat you don't need to write to file at all

    – LeonidMew
    Apr 22 at 7:16

















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

    – Mostafa Esmail
    Apr 21 at 21:16












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

    – Mostafa Esmail
    Apr 21 at 21:26











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

    – Jules Lamur
    Apr 21 at 22:34












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

    – Mostafa Esmail
    Apr 21 at 23:28






  • 1





    @MostafaEsmail Updated answer. With bcat you don't need to write to file at all

    – LeonidMew
    Apr 22 at 7:16
















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

– Mostafa Esmail
Apr 21 at 21:16






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

– Mostafa Esmail
Apr 21 at 21:16














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

– Mostafa Esmail
Apr 21 at 21:26





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

– Mostafa Esmail
Apr 21 at 21:26













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

– Jules Lamur
Apr 21 at 22:34






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

– Jules Lamur
Apr 21 at 22:34














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

– Mostafa Esmail
Apr 21 at 23:28





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

– Mostafa Esmail
Apr 21 at 23:28




1




1





@MostafaEsmail Updated answer. With bcat you don't need to write to file at all

– LeonidMew
Apr 22 at 7:16





@MostafaEsmail Updated answer. With bcat you don't need to write to file at all

– LeonidMew
Apr 22 at 7:16

















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%2f1135887%2fhow-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

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company