Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBMS_STATS Metalinks Notes Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Insert cause enqueue locks Oracle
  • Jai Shree Ram Linux/Unix
  • S3 Basic info AWS
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • Getting started with notebook Python/PySpark
  • How to see which patches are applied. Oracle
  • Some OS level threshold for performance. Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Import and export statements Oracle
  • Pending Distributed Transations Oracle
  • How to stop OCSSD Daemon Oracle
  • SQLPLUS COPY command Precautions. Oracle

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

  • Debugging Shell FIles Linux/Unix
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • setting prompt display with .profile Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • CPU Core related projections AWS
  • Directory wise folder wise space usage 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
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • get_vmstat_linux Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • Drop specific SQL plan baseline – spm Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme