Skip to content

Instantly share code, notes, and snippets.

@jlant
Last active June 25, 2018 14:58
Show Gist options
  • Save jlant/40b92ed9069d665f31ab to your computer and use it in GitHub Desktop.
Save jlant/40b92ed9069d665f31ab to your computer and use it in GitHub Desktop.
Notes - Software Carpentry information and notes for workshops

Software Carpentry Workshop Notes

The Unix Shell

Find "NaN" values in set of files:

$ find . -type f -name "WATER.txt" | xargs grep "NaN"
$ find . -type f | xargs grep "NaN"
$ grep -rnw . -e "NaN"

r recursive
n line number
w whole word match
e regex

$ grep -rl . -e "NaN"

l list only file names of matching files

Find the number of files that have NaN values:

$ grep -rl . -e "NaN" | wc -l

Software Carpentry Windows Installer - includes nano and make

http://files.software-carpentry.org/SWCarpentryInstaller.exe

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