Co' 2 vi' du. nho? sau:

# 1:
y=2
x=`expr $y + 3`

# 2:
y=2
x="$(expr $y + 3)"

Co' the^? la` 2 scripts tre^n de^`u co' chu+'c na(ng gio^'ng nhau, nhu+ng
lie^.u co' gi` kha'c bie^.t quan tro.ng nu+~a kho^ng ? Be^n ca.nh do', o+?
vi' du. 2 thi` expr $y + 3 -> 5 ro^`i x="$5" ne^n ne^'u no'i ga'n con so^' 5
cho x se~ kho^ng ho+.p li' la('m. Nhi`n va`o doa.n script linuxrc. cu?a
vnlinuxCD.

RAMSIZE="$(expr $TOTALMEM / 3)"

thi` cha('c cha('n la`ga'n cho RAMSIZE la` gia' tri. cu?a bie^'n TOTALMEM
chia cho 3.



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
VietLUG-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vietlug-users

Trả lời cho