Title: Theory / Unimportant / CS / command line / text streaming / Sed & Awk - Doughetry, Robbins{
Tags: computer_to_instruction fromCommandLine hasNotNewEffectReturnsMeaning récupéré hasSeenConjDef

Name: stream editor
Page: xi, 3
Chapter: Preface, 1
Abbreviation: sed

Name: new awk
Page: xi
Chapter: Preface
Abbreviation: nawk

Name: old awk
Page: xi
Chapter: Preface
Abbreviation: oawk

Name: gnu awk
Page: xiii
Chapter: Preface
Abbreviation: gawk

Question: Main difference between sed and ed
Answer: sed takes stream as input, ed files
Page: 12
Chapter: 2, sed and grep book
Answer2: sed print its output, ed does not
Answer3: ed modify the file, sed note
Answer4: sed commands are applied to every line, ed to a single one

Question: Main difference between awk and nawk
Answer: Awk was supposed to be a text editor, nawk is created for script
Page: 13
Chapter: 2, sed and grep book

Page: 14
Effect: specifiy that foo is a script file to use
Context: sed, awk
Chapter: 2, sed and grep book
Abbreviation: -f foo

Question: How sed and awk apply an instruction on a line
Answer: Test whether the line satisfy the pattern. If so apply the procedure to it.
Page: 15
Chapter: 2, sed and grep book

Question: How sed and awk apply script
Answer: It takes each line of the input in turn.
Apply script to it.
Sed print the result.
Page: 14
Chapter: 2, sed and grep book

Name: A script
Definition: where you tell the program what to do
Page: 14
Chapter: 2, sed and grep book
Conjdef: A file

Name: An instruction
Definition: a regexp
Page: 15
Chapter: 2, sed and grep book
Context: sed, awk
Definition2: a procedure
Conjdef: A pair

Page: 16
Effect: state that the instruction foo should be applied
Context: sed
Chapter: 2, sed and grep book
Abbreviation: -e `foo`

Question: What happens if multiple -e and/or -f are given
Answer: each script/instruction are applied in the order in which they are given
Page: 19
Chapter: 2

Fla: -n
Effect: Suppress automatic output of input lines.
Page: 19
Prefix: sed
Chapter: 2