newbie Q : How to read an output file in one command line Announcing the arrival of Valued...
How to make triangles with rounded sides and corners? (squircle with 3 sides)
The Nth Gryphon Number
How to ask rejected full-time candidates to apply to teach individual courses?
Centre cell vertically in tabularx
Can haste grant me and my beast master companion extra attacks?
Determine whether an integer is a palindrome
Is there any significance to the prison numbers of the Beagle Boys starting with 176-?
New Order #6: Easter Egg
Why can't fire hurt Daenerys but it did to Jon Snow in season 1?
systemd and copy (/bin/cp): no such file or directory
"Destructive power" carried by a B-52?
Why weren't discrete x86 CPUs ever used in game hardware?
Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?
Was the pager message from Nick Fury to Captain Marvel unnecessary?
What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?
Should man-made satellites feature an intelligent inverted "cow catcher"?
How to make an animal which can only breed for a certain number of generations?
Does the main washing effect of soap come from foam?
2018 MacBook Pro won't let me install macOS High Sierra 10.13 from USB installer
How do you write "wild blueberries flavored"?
How much damage would a cupful of neutron star matter do to the Earth?
Random body shuffle every night—can we still function?
Did pre-Columbian Americans know the spherical shape of the Earth?
Putting class ranking in CV, but against dept guidelines
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;
}
how to do something like this correctly
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
thanks
firefox
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.
add a comment |
how to do something like this correctly
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
thanks
firefox
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 dofirefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.
– Sebastian Stark
36 mins 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
30 mins ago
add a comment |
how to do something like this correctly
$: lshw -html > /tmp/specs.html < firefox
also tried
$: firefox < "lshw -html > /tmp/specs.html"
thanks
firefox
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
firefox
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.
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 1 hour 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 dofirefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.
– Sebastian Stark
36 mins 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
30 mins ago
add a comment |
In zsh you could dofirefox =(lshw -html). In bash I don't see a way without repeating the file name in some way.
– Sebastian Stark
36 mins 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
30 mins 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
36 mins 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
36 mins 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
30 mins 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
30 mins ago
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
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
add a comment |
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.
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%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
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
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
add a comment |
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
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
add a comment |
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
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
answered 1 hour ago
LeonidMewLeonidMew
1,108624
1,108624
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
add a comment |
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
thanks for the answer , but I don't want to write the filename again
– Mostafa Esmail
48 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
I mean , I want to use the output file "specs.html" as an input for the command firefox
– Mostafa Esmail
39 mins ago
add a comment |
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.
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.
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%2fnewbie-q-how-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
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
36 mins 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
30 mins ago