Displaying Specific FieldsSpecifying the Field SeparatorSimple Pattern-MatchingMatching Fields Against Several ValuesDetermining the Number of FieldsDetermining the Last FieldDetermining the Second-to-Last FieldPassing Variables to awkUsing a Variable Passed to awk in a ConditionDisplaying a Range of Fields (Main Method)Displaying a Range of Fields (Alternate Method)Determining the Length of a String Using awkDetermining the Length of a String Using exprDisplaying a Substring with awkDisplaying a Substring with exprConducting Simple Search and Replace with sedDisregarding Blank and Commented Lines from a FileConducting Dual Search and Replace with sedFiltering Lines with sedSearching for Multiple Strings with egrepA Clean Method of Searching the Process TableSumming Columns Using awkGenerating Random Numbers Using awkGenerating Random Numbers from the ShellDisplaying Character-Based Fields with sedEscaping Special CharactersReturning Trailing Lines from a Pattern Match Using grepReturning Preceding Lines to a Pattern Match Using grep