πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7124

Re: Retorno de carro en script

#7124
From: kurtsik
Date: Mon, 31 Mar 2003 22:05
43 lines
2220 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

JuliοΏ½n Albo(e)k idatzi zuen:

Aupa Julian.
Gracias por la ayuda, pero he esta mirando el man de awk y experimentando y 
lo cierto es que estoy un poco perdido  :-(
Lo que necesito exactamente es que me escriba en un archivo 
(/var/lib/samba/netlogon/%U) algo asi con salto de linea tipo windows:
net use u: \\kurtsik\$name
net use g: \\kurtsik\$group
net use x: \\kurtsik\public

Lo he intentado con lo siguiente pero no me funciona en absoluto:
awk '{ print 'net use u: \\kurtsik\$name "\r"net use g: \\kurtsik\$group' }'
pero nada de nada.
Alguna idea?

Gracias mil
Kurtsik

 > /mnt/floppy/$izena.bat

> 
> awk '{ print $0 "\r" }'
> 
> Salu2

- -- 
- - - ------------------------------------------------------------------
   "Euskera da euskaldun egiten gaituena"
 
   Mandrake 9     Linux erabiltzaile errejistratua: #231651
   GnuPG giltza: www.rediris.es/pgp ---> kurtsik_news
 - ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+iLvK6gRb2POS43sRAsQIAKC1dsPkpnWG5QN35F4Tbud+zXkGTQCgra1V
JF6IQgKFlNqqL5y2BriA+s0=
=hB+H
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <b6a72a$32rae$1@ID-101278.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!221.red-80-35-97.pooles.rima-tde.NET!not-for-mail
References: <b69knl$30crg$1@ID-101278.news.dfncis.de> <3E886A24.110BEF39@terra.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,d835d0321a6ee13f
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-03-31 12:05:33 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!221.red-80-35-97.pooles.rima-tde.NET!not-for-mail
From: kurtsik <merlinaztia*STOPSPAM*@mixmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Retorno de carro en script
Date: Mon, 31 Mar 2003 22:05:58 +0000
Lines: 43
Message-ID: <b6a72a$32rae$1@ID-101278.news.dfncis.de>
References: <b69knl$30crg$1@ID-101278.news.dfncis.de> <3E886A24.110BEF39@terra.es>
Reply-To: merlinaztia*STOPSPAM*@mixmail.com
NNTP-Posting-Host: 221.red-80-35-97.pooles.rima-tde.net (80.35.97.221)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: fu-berlin.de 1049141130 3239246 80.35.97.221 (16 [101278])
User-Agent: KNode/0.7.1