Friday, December 20, 2019

ps -ef | grep [search string] | awk '{print $2}' | xargs kill -9

Tuesday, December 17, 2019

Monday, August 19, 2019

Open ended experiments

Sublime text 2


CMD + 1
CMD + 2    -  go through open filenames



Add folder to open all filenames


CMD + D  - select words and replace all at once


CMD + /  - comment out the lines

CMD + SHIFT + P - open interface

uninstalled packages



Endnote
readcube

fix openmp issue

./configure CC=gcc-5 --enable-float --enable-openmp --enable-threads -prefix=/Users/tuhin/Softwares/fftw-3.3.8

QUIVER

kill all screens

pkill screen

Saturday, April 6, 2019

combining files


  1. list the files you want to concat
    ls | grep [pattern] > filelist
  2. Review your files are in the proper order with vi or cat. If you use a suffix (1, 2, 3, ..., N) this should be no problem
  3. Create the final file
    cat filelist | xargs cat >> [final file]
  4. Remove the filelist
    rm -f filelist
Hope this helps anyone