![]() |
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 |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 08:12 PM |
| Help Required regarding wc command | dtidke | Shell Programming and Scripting | 7 | 06-05-2008 06:38 AM |
| Sed-- command help required | pssandeep | UNIX for Dummies Questions & Answers | 6 | 03-18-2008 10:43 AM |
| Help required on AWK command | udiptya | UNIX for Dummies Questions & Answers | 13 | 01-22-2008 08:43 AM |
| Help required for cat command | mahalakshmi | Shell Programming and Scripting | 7 | 11-23-2006 06:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
dirname or substring removal operator ${%}
Code:
str="/home/psv/file/test.ksh"
echo `dirname $str`/
echo "${str%/*}/"
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|