Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • compile_inv.sql Oracle
  • findobj.sql Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • standard Monitoring – 1 Oracle
  • Goldengate Tutorial Oracle
  • catting.sh Linux/Unix
  • Recovering lost SYS password Oracle
  • move_arch_files.ksh Linux/Unix
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • RAC 11g with vmware Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Rownum with Order by Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle

replace alphabets using sed

Posted on 28-Aug-2008 By Admin No Comments on replace alphabets using sed

Following will replace anything except numeric digits.

sunflower1/800P>echo /db15/archlogbak/800P/arch0000295711.arc | awk -F”/” ‘{print $NF}’ | sed -e ‘s|[^0-9]||g’

0000295711

Linux/Unix, shell

Post navigation

Previous Post: Reading parameter file and printing
Next Post: Finding last recovered file on DR and remove all chanracters before any “/”

Related Posts

  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • xargs use Linux/Unix
  • how to find VIP from ifconfig Linux/Unix
  • SAN Linux/Unix
  • copying/removing directory with all its subdirectory 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
  • proc.sql Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Reading parameter file and printing Linux/Unix
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Caching sequence in Memory Oracle
  • Generating XML from SQLPLUS Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme