Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SAN Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • scp with ssh2 Linux/Unix
  • Pending Transaction Neighbors Script Oracle
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • good note for shared pool tunnig Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Find all users who have DML privileges Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • How to know current SID Oracle
  • how to find VIP from ifconfig Linux/Unix
  • Renaming Oracle Instance Name Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Oracle 11g Training on 29JAN1010 Oracle

Deleting first line and lastline of a file using sed

Posted on 04-Feb-2010 By Admin No Comments on Deleting first line and lastline of a file using sed

Delete last line of a file.

===========================

sed ‘$d’ < input_file > output_file

Delete First line of a file.

============================

sed ‘1d’ input_file > output_file

Linux/Unix, shell

Post navigation

Previous Post: Pending Transaction Neighbors Script
Next Post: Distributed Transaction Troubleshooting.

Related Posts

  • setting prompt display with .profile Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • runsql_once.ksh Linux/Unix
  • to see when crontab is changed. Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • SQL Server Vs Oracle Architecture difference SQL Server
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Jai Shree Ram Oracle
  • find_pk.sql /* Find Primary Key */ Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme