Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Forum De Bell Tolls > [fse] Linux Advanced
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[fse] Linux Advanced

ciao...
come daccordo ho aperto il thread per il corso fse di linux avanzato.
il "compito" per domani è quello di realizzare un script di shell cui si possa inviare uno e un solo parametro di tipo numerico e che stampi poi a video la seria numerica da 0 al numero inserito.

Per eventuali problemi, chiarimenti o anche solo per fare due chiacchere (ora provo a chiedere se è possibile avere una sezione apposta per noi così dividiamo gli argomenti) possiamo trovarci qui....

ciao
citrus
:D

15-06-2004 15:21
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
HeavyLord
.arcimaestro.

User info:
Registered: Jun 2003
Posts: 278 (0.03 al dì)
Location: hell is home
Corso: Informatica
Anno: 3^
Time Online: 4 Days, 18:30:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io l'esercizio l'ho fatto.
unica controindicazione è che ogni volta che stampa il numero poi mi da un errore che dice + o -
"Count: command not found."

ne ho provate un pò ma poi (citando dal prof) mi son perso d'animo, però funge ^^

__________________
my site:http://heavylord.splinder.com
my pub:http://www.inkubo.it
- Possiamo vedere nel futuro solo per un piccolo tratto,ma vediamo che in questo piccolo tratto c'è molto da fare
- Non bisogna dare solo anni alla vita,ma anche vita agli anni

15-06-2004 17:43
Click Here to See the Profile for HeavyLord Click Here to See the Blog of HeavyLord Click here to Send HeavyLord a Private Message Visit HeavyLord's homepage! Find more posts by HeavyLord Add HeavyLord to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io non riesco a capire come fare il parsing dell'argomento....
servirà sicuramente un comando esterno ma non ne conosco....
altrimenti mi tocca confrontare le stringhe una per una fino all'infinito e non mi semba proprio il caso ..... :D
(oltretutto sto ancora reinstallando linux perchè quando ho ricompilato il kernel ho fatto macello...) quindi sono obbligato sulla knoppix live che però non mi permette di fare molto... anche perchè mi manda in tilt la tastiera :wall:

ce la farò!!! ce la farò!!!

:wall: :wall: :wall:

dho!

15-06-2004 17:51
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
HeavyLord
.arcimaestro.

User info:
Registered: Jun 2003
Posts: 278 (0.03 al dì)
Location: hell is home
Corso: Informatica
Anno: 3^
Time Online: 4 Days, 18:30:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

parsing??

gli argomenti si chiamano $1, $2, $n (dove n è il numero dell'ennesimo parametro) oppure $# il numero di tutti i parametri.

__________________
my site:http://heavylord.splinder.com
my pub:http://www.inkubo.it
- Possiamo vedere nel futuro solo per un piccolo tratto,ma vediamo che in questo piccolo tratto c'è molto da fare
- Non bisogna dare solo anni alla vita,ma anche vita agli anni

15-06-2004 17:54
Click Here to See the Profile for HeavyLord Click Here to See the Blog of HeavyLord Click here to Send HeavyLord a Private Message Visit HeavyLord's homepage! Find more posts by HeavyLord Add HeavyLord to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

certo $# mi serve per verificare che sia stato inserito uno e un solo parametro ma poi come fai a verificare che si tratti di un numero e non di una stringa?

15-06-2004 18:10
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
HeavyLord
.arcimaestro.

User info:
Registered: Jun 2003
Posts: 278 (0.03 al dì)
Location: hell is home
Corso: Informatica
Anno: 3^
Time Online: 4 Days, 18:30:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

leggi il man bash.

qualcosa di utile lo trovi li dentro, soprattutto per la matematica.

__________________
my site:http://heavylord.splinder.com
my pub:http://www.inkubo.it
- Possiamo vedere nel futuro solo per un piccolo tratto,ma vediamo che in questo piccolo tratto c'è molto da fare
- Non bisogna dare solo anni alla vita,ma anche vita agli anni

15-06-2004 18:31
Click Here to See the Profile for HeavyLord Click Here to See the Blog of HeavyLord Click here to Send HeavyLord a Private Message Visit HeavyLord's homepage! Find more posts by HeavyLord Add HeavyLord to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

fatto!!!!
tu sei riuscito a capire come mai ti da quell'errore?

15-06-2004 21:19
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
altersystem
.illuminato.

User info:
Registered: Apr 2004
Posts: 228 (0.03 al dì)
Location:
Corso: informatica paranormale
Anno: I
Time Online: 4 Days, 19:11:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate se mi intrometto nel forum,
ma di che corso state parlando; info triennale ?

thanks

16-06-2004 08:13
Click Here to See the Profile for altersystem Click Here to See the Blog of altersystem Click here to Send altersystem a Private Message Find more posts by altersystem Add altersystem to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
HeavyLord
.arcimaestro.

User info:
Registered: Jun 2003
Posts: 278 (0.03 al dì)
Location: hell is home
Corso: Informatica
Anno: 3^
Time Online: 4 Days, 18:30:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by altersystem
scusate se mi intrometto nel forum,
ma di che corso state parlando; info triennale ?

thanks


l'FSE di linux advanced

__________________
my site:http://heavylord.splinder.com
my pub:http://www.inkubo.it
- Possiamo vedere nel futuro solo per un piccolo tratto,ma vediamo che in questo piccolo tratto c'è molto da fare
- Non bisogna dare solo anni alla vita,ma anche vita agli anni

16-06-2004 16:25
Click Here to See the Profile for HeavyLord Click Here to See the Blog of HeavyLord Click here to Send HeavyLord a Private Message Visit HeavyLord's homepage! Find more posts by HeavyLord Add HeavyLord to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

piccolo appunto....
per la redirezione di comandi in una variabile non si usa ^ ma l'apice inverso che su linux si fa con ALTGR + '
(con winzzoz non funge...)
ci sono impazzito un ora per trovarlo.....

16-06-2004 23:44
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ALTGR+7 ---> {
ALTGR+0 ---> }

17-06-2004 00:25
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
HeavyLord
.arcimaestro.

User info:
Registered: Jun 2003
Posts: 278 (0.03 al dì)
Location: hell is home
Corso: Informatica
Anno: 3^
Time Online: 4 Days, 18:30:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ehm...come diceva la consegna dell'esercizio??

__________________
my site:http://heavylord.splinder.com
my pub:http://www.inkubo.it
- Possiamo vedere nel futuro solo per un piccolo tratto,ma vediamo che in questo piccolo tratto c'è molto da fare
- Non bisogna dare solo anni alla vita,ma anche vita agli anni

17-06-2004 12:09
Click Here to See the Profile for HeavyLord Click Here to See the Blog of HeavyLord Click here to Send HeavyLord a Private Message Visit HeavyLord's homepage! Find more posts by HeavyLord Add HeavyLord to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bisogna creare due script...
il primo deve cercare a partire dalla dir corrente tutti file e le cartelle e mettere i file (solo i file) da qualche parte in ordine di dimensione....
il secondo deve fare la stessa cosa con in più un confronto sui dati raccolti dal primo per vedere se qualche file ha cambiato la sua dimensione...

credo sia tutto.....

17-06-2004 12:31
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

...fatto così però mi sembra semplice (anche se ad essere sincero mi ha portato via non poco tempo :oops: )....
qui gatta ci cova....
sarebbe interessante riuscire a identificare i file che sono stati cancellati e quelli creati ex novo e visto che mi sembra che ci abbia lasciato la libertà di decidere se e come gestirli (quindi penso che non ci sia niente di male se collaboriamo almeno per questa parte)
direi che si può anche provare a lanciare la discussione....

il problema è stabilire come si fa a distingure un file nuovo da quelli che invece sono solo stati modificati.
un file nuovo appartiene innanzitutto alla lista dei file modificati.
Mettiamo di avere

Lista A ? file originali
Lista B ? file modificati

Quindi si tratterebbe di eliminare le voci dei file contenute in A da B.
per fare questo però bisogna lavorare sul nome perchè operando sulla dimensione siamo punto e accapo.
quindi bisgna prendere le liste A e B e tagliare la prima colonna (quella della dimensione) mantentendo solo quella dei nomi dei file.
A questo punto si potrebbe nuovamente salvare A1 e B1 in due file distinti e rieseguire il comando comm....

Qualcuno ha un modo migliore?

Last edited by citrus on 17-06-2004 at 19:29

17-06-2004 19:23
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
HeavyLord
.arcimaestro.

User info:
Registered: Jun 2003
Posts: 278 (0.03 al dì)
Location: hell is home
Corso: Informatica
Anno: 3^
Time Online: 4 Days, 18:30:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io li ho trattati come se fossero tutti un unica razza di file! ^^

e mi funziona bene.

__________________
my site:http://heavylord.splinder.com
my pub:http://www.inkubo.it
- Possiamo vedere nel futuro solo per un piccolo tratto,ma vediamo che in questo piccolo tratto c'è molto da fare
- Non bisogna dare solo anni alla vita,ma anche vita agli anni

17-06-2004 20:19
Click Here to See the Profile for HeavyLord Click Here to See the Blog of HeavyLord Click here to Send HeavyLord a Private Message Visit HeavyLord's homepage! Find more posts by HeavyLord Add HeavyLord to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 10:12.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.090 seconds (69.43% PHP - 30.57% MySQL) con 25 query.