This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:unix:spring2024:classnotes [2024/03/22 20:41] – cgrant9 | notes:unix:spring2024:classnotes [2024/04/16 17:19] (current) – cgrant9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
======UNIX class notes====== | ======UNIX class notes====== | ||
- | [[#Cleaned VI Notes|VI Notes]] | + | [[#Week 5|In Depth VI Notes]] |
+ | |||
+ | [[#Cleaned VI Notes|Basic VI Notes]] | ||
+ | |||
+ | [[#Week 9|REGEX' | ||
=====Week 1===== | =====Week 1===== | ||
+ | <fs xx-large> | ||
+ | |||
+ | This page includes some notes, typically major things, from each class session | ||
+ | Please add notes whenever you can = ) | ||
=====Week 2===== | =====Week 2===== | ||
*Re-went over group and pwd command | *Re-went over group and pwd command | ||
Line 242: | Line 250: | ||
---------------- | ---------------- | ||
=====Tuesday===== | =====Tuesday===== | ||
+ | Virtual class session day | ||
+ | |||
+ | Started discussing wpa0 | ||
+ | |||
+ | in a man page, or vi, or a less pager you can use a forward slash to search for something | ||
+ | |||
+ | Remember wildcards are specifically filenames, regex' | ||
+ | |||
+ | REGULAR EXPRESSIONS!!!!!!! | ||
+ | | ||
+ | Basic REGEX (in Unix) | ||
+ | * . match any symbol (similar to ? in wildcards) | ||
+ | * * match zero or more of the previous (similar, but different to * in wildcards) | ||
+ | * ^ match start of line | ||
+ | * $ match end of line | ||
+ | * \< match start of word | ||
+ | * \> match end of word | ||
+ | * [ ] character class; match any one of enclsed (similar to use as wildcard) | ||
+ | * [^ ] inverted character class; do not match any of enclosed (similar to use as wildcard) | ||
+ | |||
+ | Extended REGEX | ||
+ | * + match 1 or more of the previous | ||
+ | * | logical or | ||
+ | * ( ) group together | ||
+ | * \( \) REGEX group | ||
+ | * ? match previous item at most once (0-1) | ||
+ | * {n} match previous item exactly n times ie " {3}" looks for exactly 3 spaces | ||
+ | * {n,} match previous n or more times | ||
+ | * {,m} match previous at most m times | ||
+ | * {n,m} match previous at least n, but no more than m times | ||
+ | |||
+ | 3 types of grep used to be used based on what REGEX' | ||
+ | | ||
+ | *grep - regular grep; basic REGEX use | ||
+ | | ||
+ | |||
+ | you can still use extended regex with a regular grep, but they need to be preceded by a \, ie a grep " | ||
+ | |||
+ | diff - a command that can show differences in files, assuming they are sorted | ||
+ | |||
=====Thursday===== | =====Thursday===== | ||
---------------- | ---------------- | ||
- | =====Week 10===== | + | No class, free day to experiment and work on projects |
+ | =====Weeks 10-14===== | ||
---------------- | ---------------- | ||
- | =====Tuesday===== | + | Mostly given time to work on projects, the last major discussion was Regex' |
- | =====Thursday===== | + | Work on your EoCE |
- | ---------------- | + | |
- | =====Week | + | |
- | ---------------- | + | |
- | =====Tuesday===== | + | |
- | =====Thursday===== | + | |
- | ---------------- | + | |
- | =====Week 12===== | + | |
- | ---------------- | + | |
- | =====Tuesday===== | + | |
- | =====Thursday===== | + | |
- | ---------------- | + | |
- | =====Week 13===== | + | |
- | ---------------- | + | |
- | =====Tuesday===== | + | |
- | =====Thursday===== | + | |
- | ---------------- | + | |
- | =====Week 14===== | + | |
- | ---------------- | + | |
- | =====Tuesday===== | + | |
- | =====Thursday===== | + | |
=====Cleaned VI Notes===== | =====Cleaned VI Notes===== |