03-22-2005 02:20 AM
The entire file is lower case and I want it to be upper case.
Solved! Go to Solution.
03-22-2005 02:54 AM
Thanks for posting this question. I've just learned the easy way of doing this. I've not needed to do an entire file before, just certain sections within a file. I've done this manually by putting my cursor over the first letter to change to uppercase (or this works also for lowercase) and holding the shift key down and pressing the ~ (tilde) key. Holding these keys down changes the case from lower to upper or upper to lower (depending on the current case) until I release the keys.
Again, thanks for posting your question.
03-22-2005 06:18 AM
--- File toupper.c ----
int main ()
fputc (toupper(fgetc (stdin)), stdout);
---- End ---
Save above file in toupper.c and compile.
# cc toupper.c -o toupper
Execute it as:
# cat you_file | toupper