Within same workdir I have several 2 column tables (with | separators between the columns) containing the same number of lines and share the order within the first column . Here is an example for two tables containing 8 lines: table 1.csv lig10| -5.4600 lig13| -5.9900 lig14| -4.2200 lig15| -4.9200 lig3| -6.9700 lig4| -7.4000 lig5| -6.0000 lig9| -6.5700  table 2.csv lig10| -5.2400 lig13| -6.6900 lig14| -4.4600 lig15| -4.9600 lig3| -6.9000 lig4| -6.3100 lig5| -3.7900 lig9| -6.5800  I would like to merge all tables in that (quite similar) format together side-by-side into big table, taking all data, so that the resulting table should contain the same number of lines with the number of columns proportional to number of fused filles. E.g. for 10 separate tables it would be 20 column table (note: I always take the column number one, even it is the same for all tables!),etc In the resulting table I would like to add header for each 2nd column (of initial table), according to the name of the initial file. Here is expected output for the 2 tables.  Is it possible to use some linux utility to fuse the tables in terminal in one line command like prog -i /workdir/*.csv  -o resulting_table.csv
I want to print two files in two columns -- first file on the left side and second on the right side. paste doesn't do the job, because it can only insert a character as delimiter, so if first file lines have different length output will be twisted: $ cat file1 looooooooong line line $ cat file2 hello world $ paste file1 file2 looooooooong line   hello line    world  If it was a command to add trailing spaces like fmt --add-spaces --width 50 the problem would be solved: $ paste &lt;(fmt --add-spaces --width 50 file1) file2 looooooooong line                                 hello line                                              world  But I don't know a simple way to do this. So how to merge and print several files horizontally without twisting? Actually, I just want to look at them simultaneously.  UPD: command to add trailing spaces does exist (for example, xargs -d '\n' printf '%-50s\n') But solution like $ paste &lt;(add-trailing-spaces file1) file2  does not work as expected when file1 has fewer lines than file2.
Would you please explain the difference between these two sentences?     Spain ceded (or gave) Puerto Rico to the United States. Since then, Puerto Rico has been a U.S. territory.      Spain ceded(or gave) Puerto Rico to the United States. Since then, Puerto Rico was a U.S. territory.   I am stuck between 'has been' and 'was' in the above sentences. Random images appearing in my home directory... Where are they coming from? Here's an odd problem I've had for a while. Every so often, I find that I have several jpeg images sitting in my home directory that I didn't put there. I'm fairly sure this isn't a security breach but rather, there's something writing these files in there that I've forgotten about.  Here's what I'm looking at today:  oli@bert:~$ ls -l *.jpg -rw------- 1 oli oli  8061 2010-11-19 18:30 An-alien-from-Mars-Attack-002.jpg -rw------- 1 oli oli 24362 2010-11-19 18:30 An-alien-from-Mars-Attack-006.jpg -rw------- 1 oli oli  8147 2010-11-05 18:08 Avatar-Film---2009-002.jpg -rw------- 1 oli oli 35602 2010-11-05 18:08 Avatar-Film---2009-006.jpg -rw------- 1 oli oli  6058 2010-12-03 18:42 Britney-Spears-victim-of--002.jpg -rw------- 1 oli oli 28330 2010-12-03 18:42 Britney-Spears-victim-of--006.jpg -rw------- 1 oli oli  8135 2010-11-12 19:19 charlie-brooker-twitter-p-002.jpg -rw------- 1 oli oli 22115 2010-11-12 19:19 charlie-brooker-twitter-p-006.jpg -rw------- 1 oli oli  8059 2010-10-29 18:47 Leonardo-DiCaprio-002.jpg -rw------- 1 oli oli 29988 2010-10-29 18:47 Leonardo-DiCaprio-006.jpg -rw------- 1 oli oli  8064 2010-10-22 16:41 Spot-the-difference-.-.-.-002.jpg -rw------- 1 oli oli 29188 2010-10-22 16:41 Spot-the-difference-.-.-.-006.jpg   They all seem like they're TV or film related... But I honestly don't have a clue what could be writing them. They don't bother me enough to go on a full-scale witch hunt but if anybody knows of something that writes images in the home directory like this, please let me know. Concatenate multiple files with two blank lines as delimiter? I'm trying to join Markdown files with two newlines between each file.   I've tried using the following command:  paste -sd '\n\n' file1.md file2.md   This joins the files with a newline, but not two newlines, as I need.   What command can I use to join an arbitrary number of files with two \n characters between each join? Proving $\prod \limits_{k=0}^{n}(1-a_k) \geq1- \sum\limits_{k=0}^{n}a_k$ Why does Blender use so much memory for large textures? If I want to print multiple figures in figure, I'm using subfigure in the figure environment. This work quit well and is looking smart, if all figures have the similar height. Now there is this figure which is more than two times higher than the other ones. I would like to order the subfigures like its shown in the following picture:     But I don’t know how to get this into Latex.   My regular code for four subfigures:  \begin{figure} \centering \begin{subfigure}{0.32\textwidth}    \centering    \includegraphics[width=\textwidth]{highone}    \caption{}    \label{fig:a} \end{subfigure} \begin{subfigure}{0.32\textwidth}     \centering     \includegraphics[width=\textwidth]{b}     \caption{}     \label{fig:b} \end{subfigure} \begin{subfigure}{0.32\textwidth}     \centering     \includegraphics[width=\textwidth]{c}     \caption{}     \label{c} \end{subfigure} \begin{subfigure}{0.32\textwidth}     \centering     \includegraphics[width=\textwidth]{d}     \caption{}     \label{fig:d} \end{subfigure} \caption{Blabla.} \label{fig:abcd} \end{figure}   Thank you for your help! Usage of into vs in vs inside When should 'into', 'in' and 'inside' be used?  What are the differences between the three?   For example, what are the differences between the following statements?  Are any of them incorrect?        The frog jumped into the well.   The frog jumped in the well.   The frog jumped inside the well. Let Y(1), Y(2), Y(3), Y(4), Y(5) denote the order statistics of a random sample of size 5 from a distribution having p.d.f. Help me to solve this problem please..  Let $Y_{(1)}, Y_{(2)}, Y_{(3)}, Y_{(4)}, Y_{(5)}$ denote the order statistics of a random sample of size 5 from a distribution having p.d.f. $f(y) = e^{(-y)}, 0 &lt; y &lt; \infty$, zero elsewhere. Show that $Z_1 = Y_{(2)}$ and $Z_2 = Y_{(4)} − Y_{(2)}$  are independent. Hint: First find the joint p.d.f. of $Y_{(2)}$  and  $Y_{(4)}$. Follow a question I've come across a few interesting questions over the last few months on Stack Overflow. They're not necessarily questions I need an answer to, but the questions are nonetheless very interesting, and now I want to know what the answers are.  I don't want to add this question to my favourites because I have my really handy posts in there.   Ideally I would like to have another kind of shortlist to which I can add these posts. I would get notifications just as if it were my own post, without having these as favourites.  What do you think of that? It would be available only for questions, and you would receive notifications just like the author, for new answers and comments on the question (not comments on the answers).  You could browse the posts you're following, as well as stop following them.   The thing is sometimes I come across a semi interesting question and upvote and maybe even comment, but I never hear about it again, because sometimes it's just not interesting enough to remember.  Like I said in the comments, I don't feel like the favourite list is really for this. I want in-your-face red dot notifications for new answers on brand new interesting questions I find. The favourites is for that post with an answer that you know you'll need again. What is divergence? How to Customize the Email template on chatter posts Can you not sell/destroy buildings? So I've started playing Gathering Storm, built a bunch of coal plants and now Global Warming is out of control mainly because of me. I've been trying to remove these power plants, but I haven't found any option to sell/destroy or even replace these buildings.  Is there seriously no way to do this? how to disable system apps without root? A continuation of .  I'm fighting a page-limit in a single-column layout and I need to put a Figure and a Table side-by-side and provide them with independent captions. However, the style guide for the publishers (LNCS) wants Figure captions below and Table captions above (probably something to do with ).   =======================================================  If I adapt @lockstep's floatrow example from  accordingly to have a Table caption above ...  \documentclass{article}  \usepackage{floatrow} % Table float box with bottom caption, box width adjusted to content  %% ********************************** %% just adding \captop to original example %% ********************************** \newfloatcommand{capbtabbox}{table}[\captop][\FBwidth]  \usepackage{blindtext}   \begin{document}  \blindtext  \begin{figure} \begin{floatrow} \ffigbox{%   \rule{3cm}{3cm}% }{%   \caption{A figure}% } \capbtabbox{%   \begin{tabular}{cc} \hline   Author &amp; Title \\ \hline   Knuth &amp; The \TeX book \\   Lamport &amp; \LaTeX \\ \hline   Knuth &amp; The \TeX book \\   Lamport &amp; \LaTeX \\ \hline   Knuth &amp; The \TeX book \\   Lamport &amp; \LaTeX \\ \hline   \end{tabular} }{%   \caption{A table}% } \end{floatrow} \end{figure}  \end{document}   =======================================================  The problem becomes clear ...    =======================================================  The floatrow doesn't correctly line up the Table and Caption. I reluctantly tried to use vspace to solve the problem, but it didn't work out.  Any suggestions on how to get these two to align? I'm happy to accept any alignment that ensures that the Table and Figure fit within the same "box".  (A similar-ish question was , but specific for subfig and with a very localised problem it seems.) Xorg: High CPU Usage (94%) on Moving Mouse (Ubuntu 18.04) whenever I move my mouse enough it causes high cpu usage. Screenshot provided is on a fresh X session.    This also causes some frequent freeze ups if I'm running some other programs e.g gaming.  [1075299.085] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077813.434] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.079] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.246] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.682] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (EE) client bug: timer event4 debounce: offset negative (-18ms) [1077831.975] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (II) event4  - Corsair Corsair Vengeance M90 Mouse: WARNING: log rate limit exceeded (5 msgs per 30000ms). Discarding future messages. [1120008.128] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost.   Is there any way for the CPU usage not to be this high?  EDIT:  I tried with other mice. The CPU usage appears to increase with the Mouse DPI or to be exact, a generic mouse will cause a CPU usage spike, but not as much as a gaming mouse.  I also checked if I have hardware acceleration enabled.  $ glxinfo | grep "direct rendering" direct rendering: Yes   EDIT 2:  CPU is an AMD FX-6350  GPU is AMD RX Vega 56 When I analyze my variables in two separate (univariate) logistic regression models, I get the following:  Predictor 1:    B= 1.049,    SE=.352,    Exp(B)=2.85,    95% CI=(1.43, 5.69),    p=.003    Constant:    B=-0.434,    SE=.217,    Exp(B)=0.65,                            p=.046  Predictor 2:    B= 1.379,    SE=.386,    Exp(B)=3.97,    95% CI=(1.86, 8.47),    p&lt;.001    Constant:    B=-0.447,    SE=.205,    Exp(B)=0.64,                            p=.029   but when I enter them into a single multiple logistic regression model, I get:  Predictor 1:    B= 0.556,    SE=.406,    Exp(B)=1.74,    95% CI=(0.79, 3.86),    p=.171 Predictor 2:    B= 1.094,    SE=.436,    Exp(B)=2.99,    95% CI=(1.27, 7.02),    p=.012    Constant:    B=-0.574,    SE=.227,    Exp(B)=0.56,                            p=.012   Both predictors are dichotomous (categorical). I have checked for multicollinearity.  I am not sure if I have given enough info, but I cannot understand why predictor 1 has gone from being significant to non-significant and why the odds ratios are so different in the multiple regression model. Can anyone provide a basic explanation of what is going on? Given an instance of System.Reflection.Assembly. Which are the non Schengen countries that allow entry for Schengen visa holders? There are countries in the Balkan area that allow entry if you have a Schengen visa but am not able find a definite list of all those countries. Knowing that will save me getting a visa for all those countries when I do my mega Euro trip. How to put a full-width table at the top or bottom of the same two-column page as the reference text? Proving an identity relating to the complex modulus: $z\bar{a}+\bar{z}a \leq 2|a||z|$ Show that $z\bar{a}+\bar{z}a \leq 2|a||z|$  I was able to check this using some examples which is not ideal for a mathematician way of proving a problem/case/theorem. I couldn't generalize it (prove it). I will be glad if I can be given the hint/proof for this problem. Thank you.