Usefull Common Resources/Tricks

  1. Useful Links on General Study
  2. Github: Configuration of local machine to github remote
  3. GDrive
  4. Useful links on Jekyll, Google AdSense, Markdown.
  5. Useful links on Travel & Insurance.

Replace string in files recursively

  • Simplest way to replace (all files, directory, recursive):
      find . -type f -not -path '*/\.*' -exec sed -i 's/Previous string/New string/g' {} + 
    
  • Note: Sometimes you might need to ignore some hidden files i.e. .git, you can use above command. If you want to include hidden files use,
    find . -type f  -exec sed -i 's/Previous string/New string/g' {} +
    

http://cocosci.princeton.edu/resources.php

GDrive

Github: Configuration of local machine to github remote

# #

© 2019-2023. All rights reserved.

Welcome to Xinshao Wang's Personal Website