Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Linux CPU info. Linux/Unix
  • exp syntax in oracle 10g Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Find_table_size.sql Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • standard Monitoring – 1 Oracle
  • switchlogfile.sh Linux/Unix
  • Export With Query Another Example. Oracle
  • move_arch_files.ksh Linux/Unix
  • V$transaction notes for finding XID composition. Oracle
  • process id based files and processes Linux/Unix
  • Add new columns in dataframe Python/PySpark
  • Korn Shell Arithmatic Linux/Unix
  • checking redhat linux version Linux/Unix

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

  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • shutdown linux Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • Transfer SQL Profiles from One database to other database. Oracle

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
  • S3 Basic info AWS
  • find_open_cur.sql Find open cursorts per session Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • Drop database in Oracle 10g Oracle
  • Some OS level threshold for performance. Linux/Unix
  • Unix split command to split files Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme