1 00:00:06,559 --> 00:00:08,310 In this video, we'll talk about tr. 2 00:00:08,990 --> 00:00:13,810 TR is for translate. It translates sets of characters into other sets of characters. 3 00:00:14,769 --> 00:00:19,170 It's useful for converting upper into lowercase or the other way around. 4 00:00:20,190 --> 00:00:24,269 And here are a couple of examples which I'm just going to run for you. 5 00:00:24,969 --> 00:00:29,399 So let's start by using echo hello, which normally is printing the text hello on the screen. And. 6 00:00:29,920 --> 00:00:36,420 And now I'm sending it to TR to translate lowercase into uppercase. 7 00:00:38,380 --> 00:00:40,340 And there we can see uppercase hello. 8 00:00:40,950 --> 00:00:44,825 Now, lower to upper is much nicer than 9 00:00:44,825 --> 00:00:48,700 the alternative, which is az, a colon Z. 10 00:00:49,560 --> 00:00:55,840 Because this would only work in languages where you don't have special accents on 11 00:00:55,840 --> 00:01:02,120 your letters, like umlaut in German, like CD in French and stuff like that. 12 00:01:02,880 --> 00:01:06,359 That doesn't work if you just go for plain az uppercase az. 13 00:01:07,260 --> 00:01:09,000 Now another one that is kind of funny. 14 00:01:09,680 --> 00:01:15,409 If we look for am and we translate by nz, then here you go, 15 00:01:15,409 --> 00:01:21,139 you can see that it has changed some of the characters in there. 16 00:01:22,159 --> 00:01:23,519 That's what TR can do. 17 00:01:24,799 --> 00:01:28,935 I like TR a lot because it allows you to convert into 18 00:01:28,935 --> 00:01:33,069 all lowercase, which makes scripted operations a lot easier. For instance.