Unix command to change the case of first three lines of file “shortlist” from lower to upper
-
$ tr '[a-z]' '[A-Z]' shortlist ¦ head – 3
-
$ head – 3 shortlist ¦ tr ‘[a-z]’ ‘[A-Z]’
-
$ tr head – 3 shortlist ‘[A-Z]’ ‘[a-z]’
-
$tr shortlist head – 3 ‘[a-z]’ ‘[A-Z]’