Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • online_ts_bkup.sql Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • How to analyze statspack or AWR report. Oracle
  • chk_space_SID.ksh Linux/Unix
  • Oracle Metalink useful notes Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • Create type and Grant on it. Oracle
  • Find total file sizes Linux/Unix
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • How to see which patches are applied. Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • SQL Server: How to see current transactions or requests SQL Server
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Formatter Explain plan Output 1 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

  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • grep multuple patterns Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • To Find Orphan OS processes. Linux/Unix
  • Find Command 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
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Temporary tablespace explaination Oracle
  • Jai Shree Ram Oracle
  • find_pdbs.sql Uncategorized
  • Good Oracle Architecture In Short and point to point Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • good note for shared pool tunnig Oracle
  • PLSQL Table Syntax 2 Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme