|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Unix Directory
Hi,
Unix -Hp In my Korn Shell script my argument is : /HomeDirectory/reports/filename.ps How can I extract from this argument only the directory without filename and extension ? Thanks, Last edited by faubertr : June 3rd, 2003 at 07:25 AM. |
|
#2
|
|||
|
|||
|
A bit more specific please. What language are you using?
|
|
#3
|
|||
|
|||
|
Read the man page for basename(1).
|
|
#4
|
|||
|
|||
|
Thanks for the help and the answer is :
NAME=$(dirname /home/faubertr/reports/text.ps) faubertr:/home/faubertr>echo $NAME /home/faubertr/reports not exactly what's showing in examples from the man page. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Unix Directory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|