DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 18th November 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Thanked 1 Time in 1 Post
Default How to remove a word and everything after?

Hi guys,

Here's what I'm trying to do. Let's say I have the following line:

43.96.199.87 Bcast:43.96.199.255 Mask:255.255.255.0

How could I remove the word Bcast and anything after that word so that the line would look like this:

43.96.199.87

Please let me know of way that I can achieve this.

P.S. I really appreciate the help you guys have given me.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove Gnome and X Malakim Solaris 2 12th April 2009 12:10 PM
NIC with internal cable; how to remove? TerryP Off-Topic 9 14th July 2008 06:33 AM
Alternative Word Processing and Spreadsheet Applications enpey FreeBSD Ports and Packages 13 7th June 2008 09:27 AM
Remove/disable a former system user anomie Guides 6 19th May 2008 12:37 AM
remove kde and kde dependent apps ccc FreeBSD Installation and Upgrading 2 12th May 2008 02:11 PM


All times are GMT. The time now is 09:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick