[ubuntu-ar] echo, EOF y redirección
Juan Carlos Ojeda
juancarlospaco at gmail.com
Thu Jun 30 18:54:17 UTC 2011
2011/6/30 Hugo M <ham1988 at gmail.com>
> Estoy haciendo un comando para crear virtual hosts y me surgió una duda
> filosófica. Cómo hago para que este echo, el output lo tire a un archivo?
> Intenté poniendo entre el echo y el << un "> miarchvodevirtualhost.txt" pero
> fallaba.
>
> echo << EOF
> <VirtualHost *:80>
> ServerAdmin webmaster at localhost
> ServerName $1
> ServerAlias www.$1
> DocumentRoot /var/www/$1
> <Directory />
> Options FollowSymLinks
> AllowOverride All
> Order allow, deny
> allow from all
> </Directory>
>
> ErrorLog /var/log/apache2/error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/access.log combined
> EOF
>
> --
> Ubuntu-ar lista de correo
> Ubuntu-ar at lists.ubuntu.com
> Modifica tus opciones o desuscribite en:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ar
> Siempre leer, comprender y aplicar nuestra etiqueta:
> https://wiki.ubuntu.com/ArgentinaTeam/EtiquetaML
>
>
>
Esto SOBREescribe archivo.txt:
echo "perro gato" > archivo.txt
Esto Escribe archivo.txt, agregando lineas al final:
echo "perro gato" >> archivo.txt
--
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ar/attachments/20110630/4df2a295/attachment.html>
More information about the Ubuntu-ar
mailing list