Thank u in advanced !
/zz
> Just as title, are there any command in solaris which can do that
> easily
> ? or a walkaround is " how to 'ls' to let dirname output is not
> followed with (/) ?
> In my machine, the dirname always are always printed with a (/), but
> some others are not , why ?
Likely you have an alias in place for ls that calls ls with the -F
option. Just remove the alias.
--
Erik Max Francis / m...@alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Laws are silent in time of war.
\__/ Cicero
Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
An Esperanto reference for English speakers.
/zz
Use the full path to ls, e.g. /usr/bin/ls, or alias another command to
/usr/bin/ls.
If you have the path with a trailing slash in a variable:
case $var in
*/) var=${var%?} ;; ## any POSIX shell
## */) var=`expr $var : '\(.*\).` ;; ## non-POSIX shell:
esac
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2001, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
> Use the full path to ls, e.g. /usr/bin/ls, or alias another command to
> /usr/bin/ls.
Or just type
\ls
(works for C shell aliases)
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.