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. > Didattica > Corsi N - Z > Sistemi operativi I > Esame di laboratorio (Giugno 2007) - Domande Thread Rating: 3 votes, 5.00 average.
Pages (571): « First ... « 535 536 537 538 [539] 540 541 542 543 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
xSharKMaNx
un gioco della follia

User info:
Registered: Sep 2007
Posts: 1477 (0.22 al dì)
Location:
Corso: F49
Anno: Laureato
Time Online: 10 Days, 17:15:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by uLori
facendo grep "\*$" restituisce i file flaggati come eseguibili...io avevo letto che era da fare il grep "\@$" per far restituire i file segnati con la @ che sono i link simbolici....solo che non esce nulla...


prova cosi:

code:
find / -type l | xargs ls -lF | tr -s ' ' ' ' | cut -d ' ' -f 5,9 | grep "\@$"


1. find / = trova tutti i file del sistema
2. -type l = trova solo i link simbolici

3. xargs ls -lF = F (maiuscola)

indica il tipo di elemento terminandolo con un simbolo:
directory /
socket =
link simbolico @
eseguibile *

4. trs -s '''' = tronca gli spazi
cut -d '' -f 5,9 = ti prende le colonne da 5 a 9 se non erro ma puoi anche ometterlo se non ti serve

5. grep "\@$" = ti estrae soltanto i record che terminano con @

Smanetta con quella stringa, così dovresti ottenere il tuo risultato

__________________
Perché, mentre il manganello può sostituire il dialogo, le parole non perderanno mai il loro potere; perché esse sono il mezzo per giungere al significato, e per coloro che vorranno ascoltare, all'affermazione della verità. E la verità è che c'è qualcosa di terribilmente marcio in questo paese. (V)

I popoli non dovrebbero aver paura dei propri governi, sono i governi che dovrebbero aver paura dei popoli. (T.J)

11-01-2011 08:24
Click Here to See the Profile for xSharKMaNx Click here to Send xSharKMaNx a Private Message Find more posts by xSharKMaNx Add xSharKMaNx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:10.    Post New Thread    Post A Reply
Pages (571): « First ... « 535 536 537 538 [539] 540 541 542 543 » ... Last »   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.052 seconds (54.03% PHP - 45.97% MySQL) con 24 query.