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 06-04-2008
ntgobinath ntgobinath is offline
Registered User
  
 

Join Date: May 2008
Posts: 38
How to delete a word from a file?

Hi All,

I want to delete a word from file. How to do that.

I have file that contains the following Information.

EntityName:alba00r1.mis.amat.com OverallStatus:Minor IfName:Gi1/0
EntityName:alba00r1.mis.amat.com[ 0 [ 4 ] ] OverallStatus:Normal IfName:Se0/0/0
EntityName:alba00r1.mis.amat.com[ 0 [ 1 ] ] OverallStatus:Minor IfName:Gi0/0
EntityName:alba00r1.mis.amat.com[ 0 [ 2 ] ] OverallStatus:NotMon IfName:Gi0/1
EntityName:alba00r1.mis.amat.com[ 0 [ 3 ] ] OverallStatus:NotMon IfName:Tu0
EntityName:alba00r1.mis.amat.com[ 0 [ 14 ] ] OverallStatus:Normal IfName:Tu1
EntityName:alba00r1.mis.amat.com[ 0 [ 15 ] ] OverallStatus:Normal IfName:Lo0
EntityName:alba00r1.mis.amat.com[ 0 [ 16 ] ] OverallStatus:Normal IfName:Gi1/0.2

By using a command (without vi), I have delete a words (EntityName: and OverallStatus: and IfName

Thanks in Advance,
Gobinathan.S