Join Scott Simpson for an in-depth discussion in this video Manipulating output with grep, awk, and cut, part of Learning Bash Scripting.
…There's a handy tool called Grep, which lets…you search files for specific patterns of text.…This can come in handy when you're…searching through log files, or if you just…want to get one piece of output from a command that returns a lot of information.…Of course there's way, way too much cool stuff that Grep does for…me to cover in this movie, but I'll show you a couple of examples.…If you want to learn more about what Grep can do,…check out its man page with the command man Grep.…So first let's take a look at a log file.…I've got a log file here called off.log.…It's a modified version of an authentication log from a computer…that was left exposed to the internet for a few days.…
It's got a whole bunch of failed log and attempts from different addresses.…And it's over 18000 lines long.…Not something you'd want to have to scroll through by hand.…Now, of course I've changed the addresses to example values, so…the IPs and servers you see don't exist on the internet.…So I could use nano or cat to see the…contents, but I want to search for my user name.…
- What is Bash?
- Managing output with grep, awk, and cut
- Understanding Bash script syntax
- Creating a basic Bash script
- Displaying text with "echo"
- Working with numbers, strings, and arrays
- Reading and writing text files
- Working with loops
- Using functions
- Getting user input during execution
- Ensuring a response
Skill Level Beginner
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
1. Working with the Command Line
2. Building Bash Scripts
3. Control Structures
4. Interacting with the User
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.