Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • metalink all dynamic view reference notes. Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Insert cause enqueue locks Oracle
  • Identical Dblink Issue… Oracle
  • Ports used by Oracle Software Oracle
  • OEM-Commnds Oracle
  • Jai Shree Ram Oracle
  • Important Script Method for tuning Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • move_arch_files.ksh Linux/Unix
  • Find nth max and min. Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • USER_TABLES.Freelists Oracle
  • secure crt settings Linux/Unix

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

  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • kill all processes from specific user in solaris. Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • tar and untar a dolder with all its subfolder. 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
  • To Find Orphan OS processes. Linux/Unix
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • FRA Information. Oracle
  • Good Site for Oracle Internals Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Drop tempfiles from database Oracle
  • This is im telling Kishore Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme