 Okay, we've been doing a couple of videos here regarding tabs, searching for them, dividing lines up by them. Here we're going to replace tabs, and there's going to be two techniques for doing that. First off, if I cat out a file, file 2.txt. You can see I have a file here, and a couple of lines contain some tabs. And we can now take that, cat it out, and pipe it into tr, so we're taking the output, basically this, and we're putting it into a new command called tr, and we're going to say with some single quotes here, backslash t, and we'll replace it with a pipe symbol. So tr is good for replacing individual characters, so we're replacing tab with the pipe symbol. If I hit enter here, you can see we no longer have tabs. Where there were tabs, we now have the pipe symbol. And of course, you can do that with other characters. I can do a dash if I want. So here it is, replacing it all the tabs with dashes. We can do the same thing with sed, sed, we can do here sed substitute, and we're going to say backslash t again, using a regular expression. And gee, so this might look a little confusing if you've never used sed substitution before. Basically, let me clean this up, okay. So we're saying use the command sed, and then we're going to substitute whatever is between these two forward slashes with whatever is between the first and second forward slashes with whatever is between the second and third. And then the gee is saying do that all throughout the file, all instances, where if you didn't do that, we'd just do it to the first instance and stop. So what we're going to say is backslash tab, that's a regular expression saying find all tabs and replace it, we'll say the pipe character again here. And then we have to give it the file name, we'll say file 2.txt. And there you go, we've got the tabs replaced with pipe symbols. Nice thing about sed over tr is that we can actually replace it with more than one character. So I can say dash, dash, dash, dash, and replace all the tabs with four or five dashes there. I can replace it with a word, I can say fred, it'll replace all tabs with freds, but you'll notice that all these instances have not modified the file at all. If I cat out file 2.txt, it still has the tabs. So we're just changing the output at this point. If we wanted to change the file itself and be careful doing this because you don't want to mess up your original file, obviously we can pipe it or redirect it into a new file if we wanted, and then cat out the new file. Our original file still exists, unmodified, but if we wanted to change the original file and change it in place without creating a new file, we can just add the dash i to sed. So we're saying sed, we're saying look at this file, so sed, look at this file, find all tabs and substitute them with this pipe symbol and the dash i in place, enter, and now I can cat out my file 2.txt, and you can see we modified the original file. So that's using sed and tr to replace tabs with either other characters or other strings. So I hope you find this useful, I've known a lot with tabs in recent videos, and I hope that you have a great day. Please visit my website, that's filmsbychrist.com, chris at the K, there's a link in the description, there you can easily search through all my videos and playlists, or just check out my YouTube channel, be sure to subscribe so you don't miss out on any videos, and I hope that you have a great day.