![]() |
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 |
| Need to strip few letters | achararun | Shell Programming and Scripting | 5 | 03-11-2008 09:08 PM |
| Setting basename and dirname variable to simply script. | liketheshell | Shell Programming and Scripting | 1 | 09-12-2007 01:36 PM |
| Solaris - unknown hostname - how can I change hostname? | XNOR | UNIX for Dummies Questions & Answers | 1 | 03-29-2007 10:52 PM |
| Need to strip a string | x96riley3 | Shell Programming and Scripting | 6 | 01-27-2007 09:21 AM |
| How to strip strins | kamathg | Shell Programming and Scripting | 14 | 03-24-2006 02:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
strip hostname from dirname?
I need to get the full path of a file minus the hostname... anyone have an easy way to do this?
What I have is: //ourhostname/ourfullpath/filename What I need is: /ourfullpath/filename hostname evaluates to 'ourhostname' dirname evaluates to '//ourhostname/ourfullpath' basename evaluates to 'filename' Thanks in advance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|