Skip to content

Instantly share code, notes, and snippets.

@newtover
Created December 4, 2017 11:13
Show Gist options
  • Save newtover/57e36ca11c750d642c28efbe03e20358 to your computer and use it in GitHub Desktop.
Save newtover/57e36ca11c750d642c28efbe03e20358 to your computer and use it in GitHub Desktop.
vagrant@vagrant:~/tmp$ cat file1.txt
qwe
asd
zxc

vagrant@vagrant:~/tmp$ cat file2.txt
wer
sdf
xcv

vagrant@vagrant:~/tmp$ paste -d$'\n' <(cat -n file1.txt) <(cat -n file2.txt) <(echo)
     1  qwe
     1  wer

     2  asd
     2  sdf

     3  zxc
     3  xcv

     4
     4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment