User Tools

Site Tools


journal:spring2019:bmather2:week11

Differences

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

Link to this comparison view

journal:spring2019:bmather2:week11 [2019/04/11 06:02]
127.0.0.1 external edit
journal:spring2019:bmather2:week11 [2019/04/11 15:46] (current)
bmather2
Line 1: Line 1:
 =====unix week11===== =====unix week11=====
 ---- ----
-====MONTH DayYEAR====+====April 112019==== 
 + 
 + 
 +You can make arrays in bash with "​declare"​ (-a makes a normal indexed array, while -A makes an associative array)\\ 
 + 
 +They work quite normally as compared to other languages.\\ 
 + 
 +When you call an array with a '​*'​ or '​@'​ as the index, it will expand the entire array (all of the values)\\ 
 + 
 +The "​let"​ command allows you to do integer math in your variable assignments as well as use a var's old value in calculating its new value.\\ 
 +I.E. "let total=total+value"​\\ 
 + 
 +But when non integers are concerned you need to echo the operation into "bc -lq" via a pipe\\ 
 + 
  
-Filler text- your entry goes here; remove this line to receive full credit. 
  
journal/spring2019/bmather2/week11.txt · Last modified: 2019/04/11 15:46 by bmather2