Programming, the current state of affairs
Editor war is the common name for the rivalry between users of the Emacs and Vi (Vim) text editors. The rivalry has become a lasting part of hacker culture and the free software community. Many flame wars have been fought between groups insisting that their editor of choice is the paragon of editing perfection, and insulting the others.
–Wikipedia
[michael@michael ~]$ cat sometable.dat
"Some Description here that your collaborator decided was useful"
"V1" "V2" "V3"
"1" -0.926279001621519 -0.90179685027722 1.97957280153958
"2" 0.937524731204077 -1.23302316044355 -0.180671760736866
"3" -1.44570215269122 0.817268060335293 0.311498702884293
"4" -0.547354824616171 0.827169714956968 -0.462521312697732
"5" -0.290613900109242 2.11331118379395 0.504731900370643
"6" -1.50689928026228 -0.273155683881863 1.61629032009698
"7" -0.154531591553615 0.201957539158184 -2.37144275790015
"8" 1.06123047151248 -0.527749699949128 0.32923487045257
"9" 1.05843977271672 0.510092464005052 -1.06093331871229
"10" 0.0961074300632977 -0.559597700246554 -0.510204378208016
[michael@michael ~]$ awk '{if (NR!=1 && NR!=2) {print $2, $3, $4}}' sometable.dat
-0.926279001621519 -0.90179685027722 1.97957280153958
0.937524731204077 -1.23302316044355 -0.180671760736866
-1.44570215269122 0.817268060335293 0.311498702884293
-0.547354824616171 0.827169714956968 -0.462521312697732
-0.290613900109242 2.11331118379395 0.504731900370643
-1.50689928026228 -0.273155683881863 1.61629032009698
-0.154531591553615 0.201957539158184 -2.37144275790015
1.06123047151248 -0.527749699949128 0.32923487045257
1.05843977271672 0.510092464005052 -1.06093331871229
0.0961074300632977 -0.559597700246554 -0.510204378208016
[michael@michael ~]$ cat sometable.dat
"0.105774991546184","0.847064147883745","-0.0660739625900144"
"0.991642673113269","-0.910378353936528","0.242019735200752"
"1.18670738365435","-0.0635949990874165","0.0545035172895231"
"0.339030527116908","1.00409816349115","1.05409760045931"
"0.733140277297745","-0.486181059367985","-0.782856940083747"
"0.912168817424054","-0.665072486844399","0.305825741840168"
"0.760501919797442","0.631352260415459","-0.702661487210477"
"-1.78710953318012","0.691635475717654","-1.11995993079623"
"1.48652315899709","-0.248673688916947","0.131737972070439"
"0.903709893442578","0.0485020698381635","0.413212986364045"
[michael@michael ~]$ sed -e 's/,/ /g' -e 's/"//g' sometable.dat
0.105774991546184 0.847064147883745 -0.0660739625900144
0.991642673113269 -0.910378353936528 0.242019735200752
1.18670738365435 -0.0635949990874165 0.0545035172895231
0.339030527116908 1.00409816349115 1.05409760045931
0.733140277297745 -0.486181059367985 -0.782856940083747
0.912168817424054 -0.665072486844399 0.305825741840168
0.760501919797442 0.631352260415459 -0.702661487210477
-1.78710953318012 0.691635475717654 -1.11995993079623
1.48652315899709 -0.248673688916947 0.131737972070439
0.903709893442578 0.0485020698381635 0.413212986364045
[michael@michael ~]$ rsync -avzu office:.matlab/myfunctions/figs/ .
receiving incremental file list
./
1_a_0_neg.eps
1_a_0_pos.eps
1_a_10_neg.eps
1_a_10_pos.eps
sent 90 bytes received 12464 bytes 2789.78 bytes/sec
total size is 36238 speedup is 2.89
Typing in your password everytime you scp or ssh is tiresome
lindon@michael-laptop:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/lindon/.ssh/id_rsa):
Created directory '/home/lindon/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/lindon/.ssh/id_rsa.
Your public key has been saved in /home/lindon/.ssh/id_rsa.pub.
The public and private key are found in (hidden) the /home/user/.ssh directory
lindon@michael-laptop:~$ ssh-copy-id -i lindon@remotecomputer.com
The authenticity of host 'remotecomputer (xx.xxx.xxx.xx)' can't be established.
RSA key fingerprint is : : : : : : : : : : : : : : : :.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'remotecomputer,xx.xxx.xxx.xx' (RSA) to the list of known hosts.
lindon@remotecomputer's password:
Now try logging into the machine, with "ssh 'lindon@remotecomputer.com'", and check in:
~/.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
lindon@michael-laptop:~$
lindon@michael-laptop:~$ ssh lindon@remotecomputer.com
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-11-generic x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Sun Sep 11 15:57:14 2011 from xx.xxx.xxx.xx
lindon@remotecomputer:~$
Creating an alias saves a lot of time
[michael@michael ~]$ cd .ssh
[michael@michael .ssh]$ cat config
Host saxon
HostName saxon.stat.duke.edu
User msl33
[michael@michael .ssh]$ ssh saxon
Last login: Sat Aug 29 19:16:35 2015 from foo.bar.foo.bar.com
[msl33@saxon ~]$
Test
ssh -T git@github.com