'ello Debian

On Thu, May 10, 2001 at 09:31:42AM +0200, Stephane Leclerc wrote:
> df > toto.txt
  ^^^^^^^^^^^^^
  La r�ponse.

> Par contre si dans un script, je fais un echo `df` > toto.txt,
> j'obtiens :

> J'aimerais bien conserver la mise en page pour une question de lisibilit�.
> Y-a-t-il une fa�on de faire ?

Euh, oui.  Enlever les `

[EMAIL PROTECTED] ~]$ cat >foo.sh
#!/bin/sh
df >toto.txt
[EMAIL PROTECTED] ~]$ chmod 755 foo.sh
[EMAIL PROTECTED] ~]$ ./foo.sh
[EMAIL PROTECTED] ~]$ cat toto.txt
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda5               139986     25917    106842  20% /
...


Je ne vois pas le probl�me.

-- 
----------(  "I've paid my $29.95...I think I'm entitled to  )----------
----------(            a few more answers." - FM             )----------
Simon ----(                                                  )---- Nomis
                             Htag.pl 0.0.17


Répondre à