The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #5 (permalink)  
Old 11-17-2007
Franklin52 Franklin52 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,305
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 09:50 AM.. Reason: typo