LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2020, 12:12 AM   #1
tqlong76
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
lower2UPPER and UPPER2lower simultaneously in vi


“vi” in the same txt file, this is my cmd to lowercase the UPPERCASE letters and UPPERCASE the lowercase letters at the same time:
:%!tr [a-z,A-Z] [A-Z,a-z]

Example: Translate—> tRANSLATE

Is there any other unique cmd to do the same?

Last edited by tqlong76; 03-03-2020 at 12:15 AM. Reason: Giving an example for better understanding
 
Old 03-04-2020, 05:36 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Your answer can be found here :- https://stackoverflow.com/questions/...ng-case-in-vim

Surprisingly, if you go past the recommended answer the second answer has a little table which helps
 
Old 03-06-2020, 11:39 AM   #3
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
g~G
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to mix S/PDIF input and PCM Out (to hear PCM and S/PDIF simultaneously)? *Dark Dragon* Linux - General 11 07-20-2012 07:53 AM
Problem in connecting the Laptop and Desktop's LAN and INTERNET simultaneously hvpraveen Linux - Newbie 1 02-26-2009 01:18 PM
how to use linux and windows OS simultaneously bajaj Linux - Software 15 08-12-2003 12:30 PM
Graphic Card that Supports displaying 8-bit and 24-bit images simultaneously yrraja Linux - Hardware 2 04-30-2003 06:41 AM
is there a way to resize my desktop icons simultaneously and all the same size? kublador Linux - Newbie 3 03-14-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration