The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-26-2008
wisher115 wisher115 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 18
Question sed for this awk command

Hi what would be the sed equivalent of this awk command:
awk '/$getsn/{getline;next}{print}' file

It deletes the variable found and the next line after it in a file.
Thanks