Text File Processing and RegEx

Expected Duration
Lesson Objectives
Course Number
Expertise Level


Most IT automation will revolve around interacting with custom systems or infrastructure. Explore some of the tools that can be used to manipulate the configuration of the software or hardware in your environment.

Expected Duration (hours)

Lesson Objectives

Text File Processing and RegEx

  • work with the Linux shell to change, copy, create, and view directories and files
  • use the VIM editor to insert, delete, append, and save data to files
  • view file contents using built-in shell commands like cat, tac, more, less, head, and tail
  • identify Linux file permissions and how they are associated with world, group, and individual user access
  • compare files and directories using the diff, wc, and nl commands
  • manipulate the contents of files using cut, uniq, and sort
  • use pipes and output redirection to manipulate file output and contents
  • describe the RegEx language and how it can be used to match against data
  • find files on a device by matching against RegEx expressions using grep
  • replace the contents of files by using the sed command and regular expressions
  • use regular expressions in Python to find matching expressions in strings
  • use regular expressions and shell commands to filter log data and find critical events
  • validate string data by using regular expressions to check for matches to email addresses, phone numbers, hex numbers, URLs, and IP addresses
  • Course Number:

    Expertise Level