![]() |
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 |
| 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 |
| output console problem | arghya_owen | Shell Programming and Scripting | 1 | 06-17-2008 06:11 AM |
| Output Problem | Eric_Bakken | UNIX for Dummies Questions & Answers | 3 | 12-09-2005 03:16 PM |
| problem with who -u output | V.V.KUMAR | UNIX for Advanced & Expert Users | 0 | 04-20-2005 10:31 PM |
| Problem With Who-u Command Output | V.V.KUMAR | UNIX for Advanced & Expert Users | 2 | 04-11-2005 11:37 PM |
| somewhat unusual top output problem | ohhmyhead | UNIX for Dummies Questions & Answers | 4 | 07-17-2004 10:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem in output
When i use the following command to get only the ip address from a file then i get a whole sentence and not only the ip address which i want.
here is the script i am using: grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' for example if this the file content: Many blogs provide commentary or news on a particular subject; others function as more personal . A typical blog combines text, images, and links to other blogs, and other media related to its topic. The ability for readers to leave comments in an interactive format with ip address 129.23.45.78 then the output looks like this : leave comments in an interactive format with ip address 129.23.45.78 but the desired output should be like this: 129.23.45.78 what should i do to fix the problem? |
|
||||
|
Can you provide the file from where you want to fetch the IP?
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|