The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
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 09-20-2007
icalderus icalderus is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 3
Need help capturing end of line numbers

Hello All,

Currently I am attempting to write a script which will capture a number at the end of a line.

The line which I am searching through ends as follows:


word word=number

for example

word word=3

OR

word word=15

I am stuck on how to capture whatever is to the right of the "=" to the end of the line. The number will vary from a single to a double digit number.

Ideally I would like to use this number for further actions downstream.

However currently I am unable to capture this number to the right of the "=" character.


Can someone please input on this? THANKS!!!