Apr 23, 2003 #1 Ambatim Programmer Feb 28, 2002 110 IN In vi, how can I change the case(from uppercase to lower or vice-versa), of all characters in particular lines, say from line 10 to line 100 ?? If not possible in vi can I do it outside of vi using any commmand ??? Thanks in advance Mallik
In vi, how can I change the case(from uppercase to lower or vice-versa), of all characters in particular lines, say from line 10 to line 100 ?? If not possible in vi can I do it outside of vi using any commmand ??? Thanks in advance Mallik
Apr 23, 2003 #2 Ygor Programmer Feb 21, 2003 623 GB awk '{if (NR>=10 && NR<=100) print toupper($0); else print $0 }' < file1 > file2 Upvote 0 Downvote
Apr 23, 2003 #3 iribach Technical User Oct 12, 2002 211 CH :2,200!tr "[a-z]" "[A-Z" Upvote 0 Downvote
Apr 23, 2003 #4 vgersh99 Programmer Jul 27, 2000 2,146 US cheating...... btw: :2,200!tr '[a-z] '[A-Z]' vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
cheating...... btw: :2,200!tr '[a-z] '[A-Z]' vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Apr 23, 2003 1 #5 CaKiwi Programmer Apr 8, 2001 1,294 US To convert a range to all uppercase or lowercase, use 10,100s/.*/\U&/ or 10,100s/.*/\L&/ CaKiwi "I love mankind, it's people I can't stand" - Linus Van Pelt Upvote 0 Downvote
To convert a range to all uppercase or lowercase, use 10,100s/.*/\U&/ or 10,100s/.*/\L&/ CaKiwi "I love mankind, it's people I can't stand" - Linus Van Pelt