Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Finding locked objects Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Absolute file number and relative file number Oracle
  • Search and replace editor command in vi Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • sql_doing_fts.sql Oracle
  • Find Stale DR Physical Standby Oracle
  • chk_space_SID.ksh Linux/Unix
  • Gathering statistics with DBMS_STATS Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Physical Standby switchover with session active Oracle
  • upload.html PHP/MYSQL/Wordpress

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

  • nfs mount command Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (394)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Oracle Material from OTN Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • cold backup scripts to copy locally Linux/Unix
  • Committing distributed transaction using commit force Oracle
  • Good notes for shared pool Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • process id based files and processes Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme