![]() |
|
|
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 |
| Delete rest of the line | Aejaz | UNIX for Advanced & Expert Users | 3 | 04-29-2008 06:32 AM |
| How to separate 0kb files from the rest!!! | kumarsaravana_s | Shell Programming and Scripting | 3 | 04-02-2007 09:38 AM |
| leave a process running in a remote machine | pbasil | UNIX for Dummies Questions & Answers | 3 | 03-15-2006 10:04 AM |
| another sed question about parenthesis | gammaman | UNIX for Dummies Questions & Answers | 5 | 07-27-2005 03:41 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need to only remove parenthesis and : leave the rest
Hi all,
I'm stuck on this last part...am running a simple script under AIX to extract NetView host IP addresses. The line below returns the IP address in parenthesis with a trailing colon, i.e. ping -c 1 $name |grep \( | awk '{ print $3 }' --------> returns (a.b.c.d): How can I only remove the parens and colon while leaving the IP address? Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|