Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • db_status.sql Oracle
  • send attachment from unix-shell script Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Pending Transaction Neighbors Script Oracle
  • Add new columns in dataframe Python/PySpark
  • v$event_name Oracle
  • secure crt settings Linux/Unix
  • myfile Oracle
  • move_arch_files.ksh Linux/Unix
  • currwait.sql Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • Physical Standby switchover with session active Oracle

Search and Replace vi editor command.

Posted on 29-Jul-2005 By Admin No Comments on Search and Replace vi editor command.

Changing Case

To change all the lower case characters to UPPER case characters, starting from the current line, and going for 5 lines, type

:s/^.*$/U&/5

To change from UPPER to lower, type

:s/^.*$/L&/5

Deleting characters

To delete the first 5 characters off of every line in the current file, type

:%s/^…..//g

Linux/Unix, shell

Post navigation

Previous Post: newupload.html
Next Post: For Search and replace unix command.

Related Posts

  • adding new line after specific pattern using sed Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Generate SSH without password authentication. Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Drop all SPM baselines for SQL handle Oracle
  • Export With Query Another Example. Oracle
  • Renaming Oracle Instance Name Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • find checksum of a file. Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • How to remove blank lines using vi editor command Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme