The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
read file and print additional rows till current year vasuarjula Shell Programming and Scripting 1 12-09-2008 03:13 AM
delete strings till specific string modcan Shell Programming and Scripting 1 11-01-2008 11:20 AM
How to print lines till till a pattern is matched in loop anoopvraj Shell Programming and Scripting 3 10-30-2008 10:36 PM
Unix code to fetch the first field till space in a variable autosys_nm Shell Programming and Scripting 3 08-27-2008 05:05 AM
Loop till you find a string in a fine <-- Need Help New to Unix Scripting mrehman UNIX for Dummies Questions & Answers 1 01-30-2008 06:01 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-19-2009
villain41 villain41 is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 29
way to print all the string till we get a space and a number

Is there any way to print all the string till we get a space and a number and store it a variable

for eg we have string java.io.IOException: An existing connection was forcibly closed by the remote host 12

All I want is to store "java.io.IOException: An existing connection was forcibly closed by the remote host" in a variable and "12" in another variable.

Plz give the solution with for loop, as I have lot of string like this.Plz help me on this.

Note: end of the string or seperation point is "space and a number".
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0