"Ronald S." wrote:
>
> halo..
> mai tanya nih caranya untuk meletakkan output screen gimana yahh. ?
> misalanya gini
>
> $ echo "testing"
> testing
>
> nah kalau mau meletakkan outputnya 'testing' ditengah gimana tapi tanpa pakai spasi
> apakah bisa.. ??
Saya tidak tahu kalau pakai spasi, tapi kalau mau pakai spasi
and shell anda = bash coba:
str="Your testing string";c=0;m=$[($COLUMNS - ${#str}) / 2];\
while [ $c -lt $m ]; do echo -n " ";c=$[$c + 1];done;echo "$str"
> saya pakai old kernel nih masih 2.0.33..
Tidak berhubungan dengan kernel anda, tapi shell/interpreter.
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+--------| http://www.rad.net.id/users/personal/s/supes |--------+
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT dx s: a- C+++ UL++++$ P- L+++(++++) E--- W++ N+++ o? K? w-- O-
M- V-- PS+ PE Y-- PGP t+@ 5 X+ R- tv- b+ DI? D++(+) G e++ h* r+ y++
------END GEEK CODE BLOCK------
--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
Hosted by http://www.Indoglobal.com