Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • AWR settings- MMON is not taking snapshot. Oracle
  • SYSOPER Mystery Oracle
  • Error Handling in Proc Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Find_table_size.sql Oracle
  • oracle fast start failover best practice Oracle
  • find_string_in_database.sql Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • login.sql Oracle
  • get_aix_vmstat.ksh Oracle
  • switchover for primary database Oracle
  • plan10g.sql good Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry 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

  • chk_space_SID.ksh Linux/Unix
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Implementation of key based authentications Linux/Unix
  • Transfer SQL Profiles from One database to other database. Oracle
  • on IBM-AIX for display 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
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Find nth max and min. Oracle
  • SAN Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Implementation of key based authentications Linux/Unix
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Export Oracle data and Compress at same time Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme