Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Locktree.sql Oracle
  • Caching sequence in Memory Oracle
  • online_ts_bkup.sql Oracle
  • good note for shared pool tunnig Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Backup and Recovery Scenarios Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Proc code Oracle
  • Renaming the column name Oracle
  • eplan.sql Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Rownum with Order by Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • Jai Shree Ram 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

  • move_arch_files.ksh Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix
  • Session_info.ksh Linux/Unix
  • switchlogfile.sh 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Some useful Unix Commands Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • Rman Notes -1 Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • CPU Core related projections AWS
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Gathering statistics with DBMS_STATS Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme