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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 11-17-2007
Franklin52 Franklin52 is offline
Moderator
 

Join Date: Feb 2007
Posts: 2,480
The -n option suppresses the automatic output of input lines (that's the default).
The p at the end tells sed to output the lines that matches.

Code:
[0-9a-zA-Z] *
This searches for lines at the left side of the division operator.
The characters within the brackets search for a numeric character or a variable and the space and asteric after the brackets for zero or more spaces.

Code:
\/
This is the escaped division operator.

Code:
 *[0-9a-zA-Z]*
At the right side of the division operator we search for zero or more preceded spaces and a numeric character or a variable.

Regards

Last edited by Franklin52; 11-17-2007 at 06:50 AM.. Reason: typo
Reply With Quote