Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • TRUNCATE Privs Oracle
  • AWR license Oracle
  • v$event_name Oracle
  • PLSQL Table Syntax 1 Oracle
  • cp_filesystem.sql Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Oracle Standby Database Library Index from Metalink Oracle
  • Search and replace pattern Linux/Unix
  • Free conference number from http://www.freeconference.com Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Resolving RMAN Hung Jobs Oracle
  • Paste command syntax Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Disbaling DBA_SCHEDULER_JOBS 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

  • replace alphabets using sed Linux/Unix
  • to see when crontab is changed. Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • Some useful Unix Commands Linux/Unix
  • crontab syntax Linux/Unix
  • Unix command for system configuration 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)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • newupload.html PHP/MYSQL/Wordpress
  • To see only files and/or folders using LS command Linux/Unix
  • Proc code Oracle
  • v$event_name Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • set_env_dba Linux/Unix
  • Updated LCK.SQL file. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme