dinsdag 29 september 2020

Concatenation of multiple files in the right order


 Is there any way to concatenate multiple text files in numerical order of the file names with one bash command?
A problem arises when you go past the number 9. If you give the ls command, you will get:
file10
file11
file12
file1
file2
file3
file4
file5
file6
file7
file8
file9
So, if you want to cocatenate in order, it won't be done correctly.
What is needed is the sort command, like this:
ls | sort -V | xargs cat *.txt

https://stackoverflow.com/questions/35126745/erge-text-files-ordered-by-numerical-filenames-in-bash

Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.