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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi i want to remove numeric contents inside a file

Status
Not open for further replies.

CALYAN

Programmer
Apr 23, 2001
39
US
SIN
SIN
BEY
0120 -2
2020
SIN
SIN

I WANT TO REMOVE THE NUMERIC CONTENTS ADN EMPTY SPACES.
HOW TO DO IT?
 
egrep -v "( |[0-9])" yourfile

tikual
 
and how to remove for example > = < signs from a text file?
(using egrep not sed).

regards.m.
 
If you want the lines with only uppercase letters:
Code:
grep '^[A-Z][A-Z]*$'

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top