[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: aiuto script bash + awk



Il Mon, 13 Sep 2004 20:40:07 +0200, Gianni Olivieri - ha scritto:

> Il giorno Monday 13 September 2004, alle 20:14, Mattia scrisse:
> | Suggerimenti? Link? Imprecazioni?
> 
> questo e' UN esempio fatto senza awk pero'... ci sono _sicuramente_ modi
> molto piu' eleganti per farlo, ma puo' darti cmq qualche spunto...
> 
> =========================================================================
> 
> #!/bin/bash
> 
> files="test_files.txt"
> 
> 
> (IFS='
> ';
> for riga in `cat $files`;
> do
> 
>    link=`echo $riga | cut -f1 -d " "`
>    name=`echo $riga | cut -f2 -d " "`
>    size=`echo $riga | cut -f3 -d " "`
>    md5sum=`echo $riga | cut -f4 -d " "`
> 
>    echo "link: $link"
>    echo "name: $name"
>    echo "size: $size"
>    echo "md5: $md5sum"
> 
> done
> )
> 
> ==========================================================================
> 
> | 
> | 
> | -- 
> | To UNSUBSCRIBE, email to debian-italian-REQUEST@lists.debian.org
> | with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> -- 
> Gianni Olivieri		|	Debian/GNU Linux On Kernel 2.6.5 
> gianni@gnuthink.org	|	Linux registered user #333000
> gianni@pureyang.org     |       <Jabber Id> gianni@ircshare.com
> 
> (8) It is more complicated than you think.
> <RFC 1925 - Fundamental Truths of Networking>
prova



Reply to: