-4

This question already has an answer here:

I am trying to : Convert all text in a file to uppercase using sed and interested to use range operator. can some one please help me here.

content of Sample.text: unix is great os. unix is opensource. unix is free os. learn operating system. Unix Linux which one you choose.

Thanks in Advance again

marked as duplicate by Pandya, Stephen Kitt, cuonglm, Wouter Verhelst, taliezin Feb 8 '16 at 14:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1
sed -i 's/.*/\U&/' Sample.text
  • I am interested to use range operator here; like [a-z]. Please give me a solution using range operator. – Venkata Naga Amar Boggavarapu Feb 8 '16 at 13:52
  • @VenkataNagaAmarBoggavarapu you can simply use like: sed y/def/DEF/ – Pandya Feb 8 '16 at 14:20
1

There are many ways to do this. Here is another. You can figure out more ways.

  echo "unix is great os." | tr [a-z] [A-Z]
  UNIX IS GREAT OS.

Not the answer you're looking for? Browse other questions tagged or ask your own question.