Re: aiuto script bash + awk
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>
Reply to: