LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Undergrad Resources
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Admin » Shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:shell [2023/01/11 17:41] – created willtools:shell [2026/07/01 12:16] (current) – [Tutorials] will
Line 1: Line 1:
 ====== Shell ====== ====== Shell ======
 eg. ''bash'' (''sh'' but "bourne" again), ''zsh'' (default for macOS), ''tcsh'' (NIH favorite) eg. ''bash'' (''sh'' but "bourne" again), ''zsh'' (default for macOS), ''tcsh'' (NIH favorite)
 +
 +===== Tutorials =====
 +  * https://www.tutorialspoint.com/unix/index.htm starts super super basic but covers advance topics (via Orma)
 +  * https://seankross.com/the-unix-workbench/command-line-basics.html
 +  * https://missing.csail.mit.edu/2020/shell-tools/ via Warren
 +  * https://www.learnshell.org/ (via Amar)
 +  * [[https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/educational/unix_tutorial/index.html|AFNI's unix intro]] to scripting
 +  * [[https://andysbrainbook.readthedocs.io/en/latest/unix/Unix_Intro.html|Andy's brain blog book unix chapter]] includes videos
 +  * Pitt's [[https://crc.pitt.edu/|center for research computing]] suggests 
 +    * https://cvw.cac.cornell.edu/Linux/default
 +    * https://software-carpentry.org/lessons/
 +
 +==== Readline Keyboard Shortcut reference ====
 + https://readline.kablamo.org/emacs.html
  
 ===== Utilities ===== ===== Utilities =====
Line 34: Line 48:
 </code> </code>
  
-===== Niche =====+===== Input Arguments ===== 
 +Both functions and scripts take "input arguments": what's provided to the right of the script or function. 
 + 
 ''"$#"'' is number input args, ''"$*"'' is all as single string ''"$@"'' is each argument quoted ''"$#"'' is number input args, ''"$*"'' is all as single string ''"$@"'' is each argument quoted
 ''$1'' .. ''$9'' are input arguments 1 to 9 (('$0' is the scripts name, ''$FUNCNAME'' is the current function)). ''printf'' like ''echo'' but first argument is how to format what follows ''$1'' .. ''$9'' are input arguments 1 to 9 (('$0' is the scripts name, ''$FUNCNAME'' is the current function)). ''printf'' like ''echo'' but first argument is how to format what follows