shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pegar nome do arquivo e diretorio


From: rubenssaraiva
Subject: Pegar nome do arquivo e diretorio
Date: Thu, 24 Jul 2003 22:04:25 -0000
User-agent: eGroups-EW/0.82

Pessoal,

Tenho uma variavel com "/teste/teste1/arquivo.txt".
Preciso pegar o nome do arquivo("arquivo.txt") e o path
("/teste/teste1") independente do numero de diretorios.

Em php existem as funçoes basedir() e basename().
E em shell como faço isso ??

Obrigado.
Rubens Saraiva



reply via email to

[Prev in Thread] Current Thread [Next in Thread]