Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn GREP and SED on Linux for Beginners
Rating: 4.3 out of 5(94 ratings)
2,378 students

Learn GREP and SED on Linux for Beginners

This course explores in details of two powerful tools grep and sed
Last updated 4/2016
English
English [Auto],

What you'll learn

  • Use Grep Efficiently
  • Understand Switches Properly
  • Use Regular Expressions

Course content

2 sections14 lectures1h 14m total length
  • Introduction To The Course3:06

    Explore grep and sed on Linux for beginners, covering regex concepts, pattern matching, email and phone validation, piping outputs, and scripting.

  • Learn Switches : -i, -v, -c4:53

    Learn to use grep on Linux for beginners with switches -i for ignore case, -v to invert matches, and -c to count results, demonstrated across multiple files and directories.

  • More on Switches : -l, -L, -n, -h4:00

    Learn practical grep usage on linux by applying -l, -L, -n, and -h to list matching files, suppress filenames, show line numbers, and invert matches with regex examples.

  • Other Command Line Switches4:18

    Explore grep command line options, learn variants like egrep and fgrep, and use the manual page to discover extended, basic, and perl regular expressions, plus patterns from files.

  • Piping Other Commands To Grep4:12

    Learn how to pipe command output into grep to filter directory listings and other results, using regular expressions to match patterns at line starts, ends, and dates like August.

  • Meta Characters In Regular Expressions9:20

    Master meta characters in regular expressions, including anchors, dot, back references, bracketed expressions, negation, alternation, quantifiers, and basic versus extended regex in grep.

  • Example Of Validating E-mail Addresses7:05

    Apply grep with extended regex to extract valid e-mail addresses from a file, anchoring to line start, matching user and domain patterns, and saving results to a text file.

  • Example Of Validating US Phone Numbers9:02

    Learn to validate U.S. phone numbers with grep and sed by building extended regex patterns, including optional parentheses, dashes, exact digit groups, and end-of-line anchoring.

Requirements

  • Any Linux Based Operating System
  • Knowledge of any Command Line is Helpful, but Not Necessary

Description

One of the most important tasks we undertake in Linux is processing text in files. This course explores two powerful tools we have to do this: grep and sed. Grep and sed find and manipulate text in files using regular expressions, which use special characters for searching and replacing text.

In the course, we’ll introduce regular expression syntax in the context of learning grep, then apply what we’ve learned as we work with sed. Topics include:

- finding text with grep
- regular expression syntax
- meta characters
- validating emails and phone numbers
- intro to sed
- replacing text in files
- line number addressing
- outputting only found lines
- printing line numbers
- adding text before and after lines
- simple sed scripts

The course is in two units, and runs just over an hour in length.

Who this course is for:

  • Any Fresher Who Wants to Learn Basic Linux Shell Commands
  • Any Fresher Who Wants to Learn Basic Regex
  • Expert who Needs to Brush up Regex Skills