Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • GSQ.sql Oracle
  • create user with unlimited quota Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • fuser to check who is using diretory Linux/Unix
  • Another Tuning Article for subheap of shared pool Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Read CSV File using Python Python/PySpark
  • how to find OS block size Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Convert multiple rows to single column Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle

Search and replace editor command in vi

Posted on 28-Jul-2006 By Admin No Comments on Search and replace editor command in vi

To search and replace between line1 and line2 use following:

(*) This is vi editor command:

following command will serach and replace whole file. (this is default with %s).

:line1,$ s/old_string/new_string/g

following command will search and replace only in specific lines:

:line1,line2 s/old_string/new_string/g

for example,

:3,5 s/CIF/UOC/g

above command will replace CIF with UOC in lines 3,4 and 5.

Linux/Unix, shell

Post navigation

Previous Post: Find average Row Length and other table size calculation. metalink notes
Next Post: get_vmstat.ksh for Solaris

Related Posts

  • Removing first line Linux/Unix
  • kill all processes from specific user in solaris. Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • replace alphabets using sed Linux/Unix
  • Unix split command to split files Linux/Unix
  • move_arch_files.ksh 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findobj.sql Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • move_arch_files.ksh Linux/Unix
  • import-export with multiple files Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix
  • Wait time tuning research Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme