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;
How to do something like this correctly?
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
command-line firefox
add a comment |
How to do something like this correctly?
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
command-line firefox
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
add a comment |
How to do something like this correctly?
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
command-line firefox
How to do something like this correctly?
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
command-line firefox
command-line firefox
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
|
show 3 more comments
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
|
show 3 more comments
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.
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
|
show 3 more comments
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.
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.
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
|
show 3 more comments
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
|
show 3 more comments
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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