Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • switchlogfile.sh Linux/Unix
  • Temporary Tablespace Information and restriction. Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • how to find VIP from ifconfig Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • find_longsql.sql Oracle
  • Find long Running Transaction Linux/Unix
  • Oracle Standby Database Library Index from Metalink Oracle
  • cur_sql.sql Oracle
  • Library cahe Latches and internal explaination Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • dbms_job.submit example Oracle
  • Roles and Stored Procs II Oracle
  • Monitor Long Running Job Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix

Removing Ctrl-M from end of line using vi

Posted on 11-Oct-2009 By Admin No Comments on Removing Ctrl-M from end of line using vi

ou can remove the ^M by doing the following:

Bring the datafile into the Unix editor vi. In command mode you would type in:

:1,$s/^V^M//

Make sure you are entering ‘control V’ and ‘control M’. The ‘control V’ says

to accept the next character exactly as I type it. Adding the two slashes at

the end of the command says to subsitute the ^M with null.

Linux/Unix, shell

Post navigation

Previous Post: replacing ^M character when passing files from Windows to Unix
Next Post: Proc code

Related Posts

  • Reading parameter file and printing Linux/Unix
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • chk_space_SID.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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • PLSQL Table Syntax 1 Oracle
  • Handling LOB data in Oracle Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Implementing Listener Security Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • New OFA for 11g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme