![]() |
|
|
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 |
| more help with formatting ls output... | patrick99e99 | Shell Programming and Scripting | 1 | 10-27-2009 01:29 AM |
| Formatting Output | dhanamurthy | Shell Programming and Scripting | 6 | 05-02-2008 12:43 PM |
| Formatting bdf output | Cameron | Shell Programming and Scripting | 5 | 04-09-2008 10:05 AM |
| Formatting output | illur81 | Shell Programming and Scripting | 3 | 10-13-2005 10:24 AM |
| Formatting the output | Cameron | Shell Programming and Scripting | 7 | 02-15-2002 10:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Output formatting help needed.
Hi guys , I have a file which contains following string.(filename tempdisplay) (location 0.0.0.0:5900) i needed to write a script which will extract the string that comes after 0.0.0.0 i.e the string :5900. I have used following method to extract the string :5900 .Is it a preferred way of doing the job as following script will create two files? Code:
sed s/"(location 0.0.0.0"/""/ tempdisplay > temp2display #temp2display will now contain :5900) temp=`sed s/")"/""/ temp2display` #temp will now contain :5900 echo $temp output: :5900 Last edited by pludi; 11-03-2009 at 03:16 AM.. Reason: code tags, please... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|