Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • adding new line after specific pattern using sed Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Check SQL Server edition SQL Server
  • SQL Server: How to see historical transactions SQL Server
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • get_vmstat.ksh for Solaris Oracle
  • how to find OS block size Oracle
  • Roles and Stored Object behaviour Oracle
  • find_longsql.sql Oracle
  • How to know current SID Oracle
  • MYSQL for Oracle DBA MYSQL
  • For Search and replace unix command. Linux/Unix
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Insert cause enqueue locks Oracle

How to remove blank lines using vi editor command

Posted on 09-Jul-2009 By Admin No Comments on How to remove blank lines using vi editor command

use the following:

:g/^$/d

Linux/Unix, shell

Post navigation

Previous Post: remove archfiles only when it is applied to DR rm_archfiles.sh
Next Post: EXTPROC

Related Posts

  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • runsql_once.ksh Linux/Unix
  • scripts to take listener.log backup 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Space padding in korn shell Linux/Unix
  • scp with ssh2 Linux/Unix
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • secure crt settings Linux/Unix
  • login.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme