-1

What can i do to capitalize all characters in the output of the ifconfig command in Bash?

So what is returned, is all in uppercase letters

Nope
  • 1
  • 2
  • 1
    looks like rather an [XY Problem](https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem) from https://stackoverflow.com/questions/67520797/how-to-find-a-files-which-names-start-with-a-certain-amount-of-digits – ti7 May 13 '21 at 20:55
  • 1
    Does this answer your question? [How to convert a string to lower case in Bash?](https://stackoverflow.com/questions/2264428/how-to-convert-a-string-to-lower-case-in-bash) – Léa Gris May 13 '21 at 21:04

1 Answers1

2

You could use tr with character classes:

ifconfig | tr '[:lower:]' '[:upper:]'
Ted Lyngmo
  • 93,841
  • 5
  • 60
  • 108