I'm wondering if there's a one-liner to do the following on Windows:
myCommand options1 | cut -c 10-20 > temp1.txt
myCommand options2 | cut -c 10-20 > temp2.txt
paste temp1.txt temp2.txt
I'd also like to do similar using diff instead of paste but I'm guessing the answer would be the same (yes?). In general temp1 and 2 will both have more than one line of text. I found the following which looks like a similar question
Print output of two commands in two columns in excel file
but that doesn't have an answer.
Edit/Update: I realize now that I wasn't very clear about the 'one-liner'. Obviously I can put all three lines together on one line by simply separating them with ampersands. That's not what I'm looking for. I vaguely recall from using Unix many years ago that backticks could be used for things like this. Maybe something like
paste `cmd1` `cmd2`
not really too sure(?). That's the sort of thing I'm looking for (on windows). Ideally it would not involve (much) more typing than simply entering the three lines above. Does this exist?
bashcan be installed on Win7, but if/when Windows gets clever, you may be able to dopaste <(myCommand ... 10-20) <(myCommand ... 10-20).