-4

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

2 Answers2

2

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.
jai_s
  • 1,500
1
sed -i 's/.*/\U&/' Sample.text