Alex Popa wrote:
On Tue, Jul 20, 2004 at 02:11:02PM +0300, Mihai Gheorghe wrote:
stie cineva de ce nu pot folosi expr cu stringuri (asa cum merge pe
orice linux)?
#!/bin/sh
b="jk adsf"
x=`expr length $b`
echo $x
__________________
la length problema e simpla deoarece pot inlocui cu x=${#b}, dar cum pot
inlocui "expr index" ???
Incearca x=`expr length "$b"`
Subliniez ghilimelele.
Alex
------------+-------------------------------------------------------
Alex Popa, | "Computer science is no more about computers than
[EMAIL PROTECTED]| astronomy is about telescopes" -- E. W. Dijkstra
------------+-------------------------------------------------------
__________________________________________________________
Send 'unsubscribe rofug' to [EMAIL PROTECTED] to unsubscribe
subliniez, ma intereseaza echivalentul lui "expr index" din linux pentru
FreeBSD, pentru expr length an gasit solutia
Multumesc.
__________________________________________________________
Send 'unsubscribe rofug' to [EMAIL PROTECTED] to unsubscribe