Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sed and Awk command for ignoring a specific character. 1

Status
Not open for further replies.

ryanildo

Programmer
Jun 26, 2002
5
US
I have created a script that goes into a particular file, XYZ and looks at the files listed within.

I.e.
FILE XYZ
#
#
#
File#1
File#2
File#3

The problem is I need to create a line within my script, so that all lines beginning with the symbol # will be ignored. Can anyone help me???? THANKS!!!!
 
awk:
/^[#]/ { next }

vlad
+---------------------------+
|#include<disclaimer.h> |
+---------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top