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

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?