Opening all .smi files from subdirectories into one file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a folder with number of subdirectories; each subdirectory has multiple files with .smi extension. I am trying to open content of all of them into one file.



I have tried this:



find ./*/*.smi | xargs xdg-open > one_file
find . | xargs xdg-open > one_file
xdg-open */*.smi > one_file
open **/*.smi > one_file


It seems that I am doing something wrong, can somebody help me?







share|improve this question



















  • content of your .smi files are subtitles, so just text ?
    – RoVo
    Jun 5 at 7:19










  • yes yes, just text :)
    – sergio
    Jun 5 at 7:21














up vote
0
down vote

favorite












I have a folder with number of subdirectories; each subdirectory has multiple files with .smi extension. I am trying to open content of all of them into one file.



I have tried this:



find ./*/*.smi | xargs xdg-open > one_file
find . | xargs xdg-open > one_file
xdg-open */*.smi > one_file
open **/*.smi > one_file


It seems that I am doing something wrong, can somebody help me?







share|improve this question



















  • content of your .smi files are subtitles, so just text ?
    – RoVo
    Jun 5 at 7:19










  • yes yes, just text :)
    – sergio
    Jun 5 at 7:21












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a folder with number of subdirectories; each subdirectory has multiple files with .smi extension. I am trying to open content of all of them into one file.



I have tried this:



find ./*/*.smi | xargs xdg-open > one_file
find . | xargs xdg-open > one_file
xdg-open */*.smi > one_file
open **/*.smi > one_file


It seems that I am doing something wrong, can somebody help me?







share|improve this question











I have a folder with number of subdirectories; each subdirectory has multiple files with .smi extension. I am trying to open content of all of them into one file.



I have tried this:



find ./*/*.smi | xargs xdg-open > one_file
find . | xargs xdg-open > one_file
xdg-open */*.smi > one_file
open **/*.smi > one_file


It seems that I am doing something wrong, can somebody help me?









share|improve this question










share|improve this question




share|improve this question









asked Jun 5 at 6:55









sergio

565




565











  • content of your .smi files are subtitles, so just text ?
    – RoVo
    Jun 5 at 7:19










  • yes yes, just text :)
    – sergio
    Jun 5 at 7:21
















  • content of your .smi files are subtitles, so just text ?
    – RoVo
    Jun 5 at 7:19










  • yes yes, just text :)
    – sergio
    Jun 5 at 7:21















content of your .smi files are subtitles, so just text ?
– RoVo
Jun 5 at 7:19




content of your .smi files are subtitles, so just text ?
– RoVo
Jun 5 at 7:19












yes yes, just text :)
– sergio
Jun 5 at 7:21




yes yes, just text :)
– sergio
Jun 5 at 7:21










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Your commands, e.g. [...] xdg-open > one_file will open the files one by one and send the output of xdg-open to one_file.



But I think you first want to merge the files, and then open the merged file.

You can use cat to concatenate text files:



find . -name "*.smi" -exec cat + > one_file.smi
xdg-open one_file.smi





share|improve this answer



















  • 1




    If my answer worked for you, please consider accepting it.
    – RoVo
    Jun 5 at 10:33










  • Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
    – sergio
    Jun 7 at 7:22










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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f1043721%2fopening-all-smi-files-from-subdirectories-into-one-file%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Your commands, e.g. [...] xdg-open > one_file will open the files one by one and send the output of xdg-open to one_file.



But I think you first want to merge the files, and then open the merged file.

You can use cat to concatenate text files:



find . -name "*.smi" -exec cat + > one_file.smi
xdg-open one_file.smi





share|improve this answer



















  • 1




    If my answer worked for you, please consider accepting it.
    – RoVo
    Jun 5 at 10:33










  • Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
    – sergio
    Jun 7 at 7:22














up vote
1
down vote



accepted










Your commands, e.g. [...] xdg-open > one_file will open the files one by one and send the output of xdg-open to one_file.



But I think you first want to merge the files, and then open the merged file.

You can use cat to concatenate text files:



find . -name "*.smi" -exec cat + > one_file.smi
xdg-open one_file.smi





share|improve this answer



















  • 1




    If my answer worked for you, please consider accepting it.
    – RoVo
    Jun 5 at 10:33










  • Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
    – sergio
    Jun 7 at 7:22












up vote
1
down vote



accepted







up vote
1
down vote



accepted






Your commands, e.g. [...] xdg-open > one_file will open the files one by one and send the output of xdg-open to one_file.



But I think you first want to merge the files, and then open the merged file.

You can use cat to concatenate text files:



find . -name "*.smi" -exec cat + > one_file.smi
xdg-open one_file.smi





share|improve this answer















Your commands, e.g. [...] xdg-open > one_file will open the files one by one and send the output of xdg-open to one_file.



But I think you first want to merge the files, and then open the merged file.

You can use cat to concatenate text files:



find . -name "*.smi" -exec cat + > one_file.smi
xdg-open one_file.smi






share|improve this answer















share|improve this answer



share|improve this answer








edited Jun 5 at 7:30


























answered Jun 5 at 7:22









RoVo

4,536932




4,536932







  • 1




    If my answer worked for you, please consider accepting it.
    – RoVo
    Jun 5 at 10:33










  • Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
    – sergio
    Jun 7 at 7:22












  • 1




    If my answer worked for you, please consider accepting it.
    – RoVo
    Jun 5 at 10:33










  • Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
    – sergio
    Jun 7 at 7:22







1




1




If my answer worked for you, please consider accepting it.
– RoVo
Jun 5 at 10:33




If my answer worked for you, please consider accepting it.
– RoVo
Jun 5 at 10:33












Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
– sergio
Jun 7 at 7:22




Oh, I thought I did yesterday. Thank you for reminding me and thank you once again!
– sergio
Jun 7 at 7:22












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043721%2fopening-all-smi-files-from-subdirectories-into-one-file%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491