 So again this is a series on said there should be an annotation hopefully up on the screen that links you to a playlist with all my the said videos in this series this is like fifth I think tutorial and we're gonna be looking at the delimiter okay so what is a delimiter delimiter I don't know I was the definition of a delimiter it's a character that basically defines where things are cut most commonly you might know if you're familiar with the cut command you can say with a delimiter of like a dash or something like that and that would tell you where to cut things up well when we're working with said again we have our text file that we've been working with if I was to use said to substitute as we have been like so we'll say replace all T's all capital T's lowercase T's that's basically my basic example in the series basically all these forward slashes are delimiters well things can get a little confusing with those forward slashes sometimes if I was to go into our text file and let's say I was to put a backslash in actually forward slash in here wait yeah forward slash in here and let's say now I want to replace something with a forward slash well if I was to say said substitute one two three G our text file and I want to replace all the places where there was a forward slash W with asterix that's not going to work I hit enter here's gonna say what you know what's going on and that's because it's seeing this forward slash as a delimiter it's going it's thinking this is the second forward slash in the command well most commonly these forward slashes are used and to tell said that this that this is sorry that this is not part of the command but one of the strings you want edit we're gonna use a backslash and that will tell the said said we'll go oh okay this isn't a backslash this is a forward slash that's a string well then it can get confusing so you can see that worked it's so it's seeing this as just a forward slash in the strings well that can get confusing let's say I was to go into here and I was to say okay backslash there then how you know it's like oh well that works but for replacing the forward slash W let's say I want to replace the backslash forward slash W well I can go in here and I can put another backslash there no see it gets confusing even I get confused I think I need to do another backslash there we go so this backslash is telling said this backslash is just a string and this backslash is telling said that this forward slash is a string so you can see you can get very confusing and this is commonly how it's done because people use the forward slashes most commonly would said but did you know you don't have to use these forward slashes I didn't either until about a half an hour ago when I started recording these videos and I was looking stuff up on said turns out you can use pretty much anything you want basically whatever you put after that s is your delimiter for the rest of the command so instead of doing all this junk here if I want to replace that backslash forward slash W what I could do is I can say underscore here underscore here and underscore here and it works wait no it didn't work oh because it's still thinking that the back slash yes so you're still going to be stuck with the whole backslash thing but if I want to replace just the forward slash W I don't need the back slash before the W I don't know if there's anything you can do about the backslashes but the forward slashes I can replace with other stuff here so I can say colons as long as I use it for all three of these it will work I can also use characters I can say a a I mean that would be a bad practice because then when you want to modify a's you're gonna have all these a's you're gonna have to backslash out but I just wanted to show you that you can use whatever character you want to divide up this command and and depending on what your output is going to be or your input is going to be then you may want to use something other than the regular forward slashes although it might be confusing to some people who don't know this because a lot of people well pretty much everybody uses the forward slashes but especially it can get confusing if you're working with file names on a Linux system since the the folders are all gonna have forward slashes and then which means you're gonna have to backslash all of them out well instead of going in backslash let's let's do that let's go vim text we'll add a line here we'll say forward slash usr forward slash share forward slash local forward slash whatever so let's say I want to replace that line in the file so we can say cat out our file here normally and this is the way it's commonly done and nothing wrong with doing it that way but I was just intrigued when I learned that I didn't have to do this I want to replace that line with a zero obviously this is not going to work we're gonna get the error that we got before we could go in here and say backslash that backslash that backslash that backslash that and it worked I replaced that whole line with zero but again another way to do it would be to use a different delimiter here so instead of back slashing all those forward slashes I can just use something like an underscore or a colon or a semi colon or whatever and it works and it's a little cleaner to see I can see oh I'm replacing that with that where with this I'm like replacing this and then if I wanted to do something with this somewhere else it's like I can't just copy and paste now you know I don't know if this is considered bad practice using this and like I say it can confuse other people who don't realize you can use stuff other than the forward slashes but I was amazed when I saw this because I never seen that before and I've been using said for years and I just found this out about a half an hour ago and had to do a tutorial on it so letting you know so in case you see this being used somewhere else letting you know that hey if you want to use this in your own personal scripts that's definitely okay it's your own personal script again if you're going to be sharing with other people make sure you tell them or just do it the not so clean looking way anyway those are delimiters in said I hope you enjoy these tutorials again there's an annotation on the screen to the entire playlist be sure to check that out also check out my website filmsidechrist.com that's Chris with a K there should be a link in the description again if you're watching this when I the day that I put it out I'll see you next Monday with more said tutorials thank you again and have a great day