![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| generating line numbers | sam4now | Shell Programming and Scripting | 7 | 04-28-2008 06:17 PM |
| capturing line from script output and appending to a file | wally_welder | Shell Programming and Scripting | 6 | 08-31-2007 03:03 AM |
| add line numbers | esham | Shell Programming and Scripting | 4 | 03-07-2005 10:46 AM |
| Printing line numbers | MizzGail | UNIX for Dummies Questions & Answers | 2 | 07-25-2002 04:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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!!! |
|
||||
|
Code:
# more file
word word=3
some more word=56
# awk -F"=" '{print $NF}' file
3
56
|
| Sponsored Links | ||
|
|