🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: �c�mo pasarle los datos de un archivo a un script?

#16344
From: primit
Date: Fri, 28 Apr 2000 00:00
39 lines
1330 bytes
�Esa es la soluci�n!
Much�simas gracias a todos.
Copio al final el c�digo, por si le sirve a alguien
  Santi


 nop@todolinux.org (Santiago Romero) wrote:
> for i in `cat fichero.txt`;
> do
>   hazloqueseacon $i;
> done
> 



#!/bin/sh
#
for f in `cat empaquetar`;
do

LABEL=bck_`hostname`_`date -u +%y/%m/%d`_"$f"
LOG=/var/COPIAS_SEGURIDAD/log/`echo $LABEL | tr '/' '-'`
TAPE=/var/COPIAS_SEGURIDAD/`echo $LABEL | tr '/' '-'`.tar.gz

tar \
--create \
--sparse \
--atime-preserve \
--preserve \
--file=$TAPE \
--label=$LABEL \
--gzip \
--one-file-system \
--verbose \
--totals \
$f \
>$LOG.log 2>$LOG.err

done
Technical Details
Message-ID: <gsoigs8bnk85doukt1dmfg1von6ep3ooct@4ax.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <e56bgs8h924d63124vvealn7da34bnm29r@4ax.com> <m3g0sa3ysm.fsf@asimovi.localdomain> <rktdgsg1u46o678s53joovfpih3ibblnlj@4ax.com> <slrn8gg5fn.vp.nop@compiler.linux.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,759a087e068186e1
X-Google-Attributes: gidf86c8,public
From: primit@nodo50.org
Subject: Re: �c�mo pasarle los datos de un archivo a un script?
Date: 2000/04/28
Message-ID: <gsoigs8bnk85doukt1dmfg1von6ep3ooct@4ax.com>
X-Deja-AN: 616727094
Content-Transfer-Encoding: 8bit
References: <e56bgs8h924d63124vvealn7da34bnm29r@4ax.com> <m3g0sa3ysm.fsf@asimovi.localdomain> <rktdgsg1u46o678s53joovfpih3ibblnlj@4ax.com> <slrn8gg5fn.vp.nop@compiler.linux.es>
Organization: Telefonica Transmision de Datos
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion