User Tools

Site Tools


journal:spring2019:dtubbs2:week5

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:dtubbs2:week5 [2019/02/14 14:25]
dtubbs2
journal:spring2019:dtubbs2:week5 [2019/02/26 16:08] (current)
dtubbs2
Line 2: Line 2:
 ---- ----
 ====February 14, 2019==== ====February 14, 2019====
 +**UPF0**
 +
 +**Hint** Use the README file to figure out how to extract, compile, and install the numbers.tgz file
 +
 +Make sure your steps file allows you to download the latest version of pipemath even if a new version is released.
 +
 +
 +use number tool instead of number ​
 +
 +Example: nine | minus **`five`**
 +Example: five | plus `nine` | minus `seven` | minus `three` output of 4
 +
 +echo 'five | plus `nine` | minus `seven` | minus `three`'​ > task0.cli
 +chmod 0700 task0.cli
 +./task0.cli
 +
 +if [ "​${USER}"​ = "​youruser"​ ]; then
 +   # stuff to do when it is you
 +if 
 +   # stuff that happens any time
 +
 +for ((index = 0; index < 8; index++)); dp
 +   # thing you want to be looped
 +done
 +-----------------------------------------------------
 +**VI**
 +VI stands for visual editor ​
 +
 +Moded editing-
 +**2 Types of Modes** ​
 +1) Command Mode
 +2) Insert Mode
 +
 +Start in command mode when first opening VI
 +-----------------------------------------------------
 +__Insert Mode__
 +Pressing "​i"​ when vi first opens, switches to insert mode, will put stuff before current cursor location
 +
 +Pressing "​a"​ when in command mode, will put stuff after current cursor location
 +
 +Pressing "​I"​ inserts at the beginning of the line
 +
 +Pressing "​A"​ inserts at the end of the line
 +
 +Pressing "​o"​ inserts a new line underneath the current line
 +
 +Pressing "​O"​ inserts a new line above the current line
 +-----------------------------------------------------
 +__Command Mode__
 +escape key used to return to command mode
 +-----------------------------------------------------
 +__Command Mode Navigation__
 +h - left by char
 +j - down by char
 +k - up by char
 +l - right by char
 +"​w"​ - moves by word forward
 +"​W"​ - moves by words separated by space forward
 +"​b"​ - moves backwards by word
 +"​B"​ - moves by words separated by space backwards
 +"​{,​}"​ - moves by paragraph "​{"​ goes up by 1, "​}"​ goes down by 1
 +"# G" - go to line # (example "20 G" goes to line 20);
 +"​Number h,j,k, or l" moves cursor that many spaces in that direction
 +Example: 8 h moves left by 8
 +-----------------------------------------------------
 +__Utility/​Manipulation__
 +yy - yank line
 +p,P = paste (p pasted below, P pasted above)
 +dd - cut line
 +cc - change line
 +x,X - deletes by char (x under cursor, X to the right of cursor)
 +. - repeats last command
 +: - extended command mode 
 +v - visual mode
 +s - substitute
 +/ - search ​
 +u - undo
 +e - goes to end of next word
 +"b2dd - buffer b put in this
 +"c3dd - buffer c put in this
 +"c3dd
 +-----------------------------------------------------
 +
  
  
journal/spring2019/dtubbs2/week5.txt · Last modified: 2019/02/26 16:08 by dtubbs2