🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Conocer si un script se ha llamado a sí mismo

#6508
From: Pascal Bourguignon
Date: Fri, 13 Jun 2003 03:04
31 lines
2093 bytes
sio2 <sio2.arr@ba.online.fr> writes:
> Para separar cada parte uso awk:
> 
> #v+
> 
> awk -v RS="--$BOUNDARY\n" -v FS="\n" ' {
>   print $0 | COMANDO " " NR
>     close(COMANDO " " NR)
> }' COMANDO="$COMANDO" $ARCHIVO
> 
> #v-

� Porque no metamail ?


#!/bin/bash
export METAMAIL_TMPDIR=/tmp/$$
mkdir $METAMAIL_TMPDIR 
trap "rm -rf $METAMAIL_TMPDIR " 0
metamail -w < mensaje
ls -l $METAMAIL_TMPDIR 
file $METAMAIL_TMPDIR/*


y ya tienes 95% de lo que quieres.


-- 
__Pascal_Bourguignon__                   http://www.informatimago.com/
----------------------------------------------------------------------
Do not adjust your mind, there is a fault in reality.
Technical Details
Message-ID: <87of12d6fi.fsf@thalassa.informatimago.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!thalassa.informatimago.COM!not-for-mail
References: <slrnbe9djd.5nd.sio2.arr@cebolleta.net.dhis.org> <874r2z2jgb.fsf@thalassa.informatimago.com> <slrnbe9o73.9t5.sio2.arr@cebolleta.net.dhis.org> <8765nex5ab.fsf@thalassa.informatimago.com> <bc32c8$5j1$1@nsnmrro2-gest.nuria.telefonica-data.net> <slrnbeb4u3.m6c.sio2.arr@cebolleta.net.dhis.org> <tg7hr-qgl.ln1@mithrandir.intranet> <slrnbec3e8.tjo.sio2.arr@cebolleta.net.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: PORTUGUESE,ASCII
X-Google-Thread: f86c8,9e3b5a3ca8b4d64b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-06-12 20:04:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!thalassa.informatimago.COM!not-for-mail
From: Pascal Bourguignon <spam@thalassa.informatimago.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re:
  Conocer si un script se ha llamado a sí mismo
Date: 13 Jun 2003 05:04:17 +0200
Organization: informatimago.com
Lines: 31
Message-ID: <87of12d6fi.fsf@thalassa.informatimago.com>
References: <slrnbe9djd.5nd.sio2.arr@cebolleta.net.dhis.org> <874r2z2jgb.fsf@thalassa.informatimago.com> <slrnbe9o73.9t5.sio2.arr@cebolleta.net.dhis.org> <8765nex5ab.fsf@thalassa.informatimago.com> <bc32c8$5j1$1@nsnmrro2-gest.nuria.telefonica-data.net> <slrnbeb4u3.m6c.sio2.arr@cebolleta.net.dhis.org> <tg7hr-qgl.ln1@mithrandir.intranet> <slrnbec3e8.tjo.sio2.arr@cebolleta.net.dhis.org>
NNTP-Posting-Host: thalassa.informatimago.com (195.114.85.198)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1055473458 17187608 195.114.85.198 (16 [41911])
User-Agent: Gnus/5.09 (Gnus v5.9.0) 21.3.50.pjb1.1