Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • executing Function from SQLPLUS prompt Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • currwait.sql Oracle
  • SAN Linux/Unix
  • Specify the Rollback segment to use in Transaction Oracle
  • Rownum with Order by Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • V$transaction notes for finding XID composition. Oracle
  • DBMS_JOB all example Oracle
  • Find sort details from Db find_sort.sql Oracle
  • cold backup scripts to copy locally Linux/Unix
  • Jai Shree Ram Oracle
  • Session_info.ksh Linux/Unix
  • When to rebuld B-tree index 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

  • Small sample shell program Linux/Unix
  • For Search and replace unix command. Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • .profile 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
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • restarting network in linux Linux/Unix
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • Jai Shree Ram Oracle
  • To see mem usage and CPU usage system wide. Linux/Unix
  • Find sort details from Db find_sort.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme