Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • backspace in SQL Plus not working then..? Linux/Unix
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • sess1.sql Oracle
  • upload.html PHP/MYSQL/Wordpress
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • USE_NL and INDEX hints example Oracle
  • Physical Standby switchover with session active Oracle
  • Create type and Grant on it. Oracle
  • metalink all dynamic view reference notes. Oracle
  • Monitor Long Running Job Oracle
  • switchover for primary database Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • How to find where datafile is created dbf_info.sql 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

  • purge_trc.sh Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • catall.sh Linux/Unix
  • good linux notes Linux/Unix
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • checking redhat linux version Linux/Unix
  • Directory wise folder wise space usage Linux/Unix
  • Pending Distributed Transations Oracle
  • create PLAN_TABLE command. Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • Database logon trigger issue Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme