Computers manipulate files programmatically, why can't you? Learn how to use programming tools to have the system write data to files for you.
- [Instructor] Sed and AWK are common tools…for changing the content of files programmatically.…They both work at the command line…and they each have a programming language of their own…to determine how to treat the content of a file.…In this video, I want to show you some basics,…and if you're interested in a lot more detail,…be sure to check out our courses…dedicated to each tool.…Here though, we'll take a look at…using regular expressions…to change the content of some files.…Sed or stream editor, is a great choice…for replacing content in a file…or as part of a piped command.…
At its most basic, a sed statement…is a command followed by some parameters.…The s command, just the letter s,…means a substitute,…and then we would give it something to look for…and something to substitute that with…when it finds it.…Let's take a look at that with our users.txt file.…First, let's take a look at the contents of the file…with cat users.txt,…and then, we can pipe that into sed,…and between two single quotes,…we'll write a little tiny sed program.…
- Exploring filesystems
- Installing Linux on a physical or virtual machine
- Working with files, directories, and links
- Finding files
- Handling input/output redirection
- Comparing text files and non-text files
- Compressing and decompressing files
- Configuring file permissions
- Managing the root account
- Accessing the command line remotely
- Transferring files
Skill Level Beginner
1. Install and Log Into Ubuntu
System documentation11m 21s
2. Working with Files in the Terminal
3. Security and Administration
- 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.