Closed sr320 closed 5 years ago
The second line translates (changes) all uppercase letters to lowercase letters.
Translate all uppercase letters to lowercase from chapter 7 in our textbook. The whole 7 line Unix scrip, by McIlroy, was a reply to the seven-page literate program to count and write the k most common word in a file written by Knuth.
Converts all uppercase letters to lowercase letters
Converts all uppercase letters (A-Z) to lowercase (a-z) and send the standard output to the next command.
Translates all upper case letters to lower case letters and send the standard output to the next command.
The line tr A-Z a-z | translates the uppercase alphabet to a lowercase alphabet in the pipeline.
it translates the uppercase letters to lowercase ones.
It translates all uppercase letters to lowercase letters and passes the output via a pipe to the next line of code.
It translates all characters that are UPPER CASE alphabet letters to lowercase alphabet letters.
This line of code uses the translate function tr
to change all UPPERCASE letters to lowercase.
The second line of code takes the input from the previous line, and translates (using the 'tr' function) all uppercase letters ('A-Z') to lowercase letters ('a-z'), then pipes the output to the following command.
The second line of code tr A-Z a-z |
translates all UPPERCASE letters to lowercase.
Yes what they said, translates/converts uppercase to lowercase. (sorry, late to the game here)
What does the second line of the following code do?