Skip to content

Commit

Permalink
Fix lists in cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
bewt85 committed Dec 21, 2015
1 parent bda829e commit 4ef59f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Notebooks/Unix/cheat_sheet/unix_cheat_sheet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,24 +169,29 @@
"## Which tool should I use?\n",
"\n",
"You should probably use awk if:\n",
"\n",
"* your data has columns\n",
"* you need to do simple maths\n",
"\n",
"You should probable use grep if:\n",
"\n",
"* you're looking for files which contain some specific text (e.g. `grep -r foo bar/`: look in all the files in `bar/` for any with the word 'foo')\n",
"\n",
"You should use find if:\n",
"\n",
"* you know something about a file (like it's name or creation date) but not where it is\n",
"* you want a list of all the files in a subdirectory and its subdirectories etc.\n",
"\n",
"You should write a script if:\n",
"\n",
"* your code doesn't fit on one line\n",
"* it's doing something you might want to do again in 3 months\n",
"* you want someone else to be able to do it without asking loads of questions\n",
"* you're doing something sensitive (e.g. deleting loads of files)\n",
"* you're doing something lots of times\n",
"\n",
"You should probably use less or head:\n",
"\n",
"* always, you should always use less or head to check intermediary steps in your analysis\n"
]
}
Expand Down

0 comments on commit 4ef59f5

Please sign in to comment.