🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: it.comp.os.unix
Article #12

Re: Aiuto nel fare scipt

#12
From: fortytwo
Date: Tue, 13 Mar 2007 23:40
20 lines
1796 bytes
never ha scritto:
> Ciao a tuttisono un po arruginito nell'awk ed avrei bisogno uno script
> che mi permetta di modificare una stringa in un file:
> esempio
> da
> /space/lna_docs/honyvem/2007Mar071249_1323/document.html
> a
> /space/lna_docs/honyvem/2007Mar071249_1323/
> 
> per poter verificare se tale directory esiste
> 
> Grazie mille
> never
Se l'esempio corrisponde ad una situazione (lista di file -> controlla 
se esiste la directory esiste, non fai prima con un mormale dirname?
if [ -d `dirname $NOMEFILE` ]; then
	BLOCCO1
else
	BLOCCO2
fi
Technical Details
Message-ID: <uDGJh.23579$zG1.250517@twister2.libero.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!aioe.org!news.cdlan.net!erode.bofh.it!bofh.it!news.nic.it!robomod
References: <1173275834.099445.138340@p10g2000cwp.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939e,5dae5bd47be30333
X-Google-Attributes: gidf939e,public
X-Google-Language: ITALIAN,ASCII-7-bit
X-Scanned: with antispam and antivirus automated system at libero.it
From: fortytwo <4t2@home.to>
User-Agent: Mozilla Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: it.comp.os.unix
Subject: Re: Aiuto nel fare scipt
References: <1173275834.099445.138340@p10g2000cwp.googlegroups.com>
In-Reply-To: <1173275834.099445.138340@p10g2000cwp.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <uDGJh.23579$zG1.250517@twister2.libero.it>
Date: Tue, 13 Mar 2007 23:40:10 GMT
Organization: [Infostrada]
Approved: robomod@news.nic.it (1.22)
Sender: robomod@news.nic.it
X-Mail-Path: tok.cu.mi.it!smtp[UNTRUSTED]!localhost !smtp[UNTRUSTED]!twister2.libero.it !news@twister2.libero.it
X-Original-NNTP-Posting-Host: 151.37.166.151
X-Original-X-Complaints-To: abuse@libero.it
X-Original-X-Trace: twister2.libero.it 1173829210 151.37.166.151 (Wed, 14 Mar 2007 00:40:10 MET)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!aioe.org!news.cdlan.net!erode.bofh.it!bofh.it!news.nic.it!robomod