Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Display the top 5 salaries for each department using single SQL Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • configUOCIOTTO.ora Oracle
  • oracle Dba site Oracle
  • lck.sql Oracle
  • Oracle 10g for solaris 10 Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Another export with Query Oracle
  • Roles and Stored Procs II Oracle
  • secure crt settings Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • get_vmstat.ksh for Solaris Oracle
  • Removing Blank lines from file using grep 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

  • shutdown linux Linux/Unix
  • Generate SSH without password authentication. Linux/Unix
  • restarting network in linux Linux/Unix
  • secure crt settings Linux/Unix
  • find checksum of a file. Linux/Unix
  • nfs mount command 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • set_env_dba Linux/Unix
  • get_vmstat_solaris Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • reset Sequence Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • Clean up Oracle
  • DBMS_JOB all example Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme