Regular expressions allow us to take the most complicated pieces of text and match the patterns within them for a variety of results, but to learn regular expressions we have to start somewhere. Using a combination of literals, digits, and word characters, alongside some basic text processing commands (such as `grep`), we can match product IDs and architectures and parse down a large product list into something more manageable.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Parse and save CPU data.
Use a regular expression to parse through the
intel-cpus.cvs
file. Save the results asintel-options.csv
.- Parse and save GPU data.
Use a regular expression to parse through the
gpus.cvs
file. Save the results asgpu-options.csv
.