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 - Тарых жана география Навигация менюсу

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070