|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||||
|
Omar TALBI Inscription : février 2011 Messages : 25 ![]() |
bonsoir, j'ai tapé un programme shell dont le but est de détécter la duplication d'un fichier, mais ça cloche lorsque j'exécute
voici mon programme : Code :
Code :
|
||||
|
|
10
|
|
|
#2 | ||
|
Membre Expert
![]() Frédéric Brugmans Informaticien multitâche Inscription : février 2005 Messages : 661 ![]() |
C'est beaucoup plus simple que cela :
Code :
|
||
|
|
20
|
|
|
#3 |
|
Omar TALBI Inscription : février 2011 Messages : 25 ![]() |
Merci beaucoup, ça m'a beaucoup aidé
|
|
|
10
|
|
|
#4 |
|
Expert Confirmé Sénior
![]() Inscription : février 2008 Messages : 2 070 ![]() |
Bonjour,
pourquoi basename ? find "$rep/" -type f -printf '%f\n' | [...] |
|
|
30
|
|
|
#5 |
|
Membre Expert
![]() Frédéric Brugmans Informaticien multitâche Inscription : février 2005 Messages : 661 ![]() |
|
|
|
01
|
|
|
#6 |
|
Expert Confirmé
![]() Inscription : janvier 2011 Messages : 970 ![]() |
Salut,
Extrait de Bash Hackers Wiki : Code :
%f Interpret and print the associated argument as floating point number Merchi * La chose étant bien entendu la transformation d'un point décimal en barre oblique
__________________
$ man woman Il n'y a pas de page de manuel pour woman. |
|
|
11
|
|
|
#7 |
|
Expert Confirmé Sénior
![]() Inscription : février 2008 Messages : 2 070 ![]() |
Bonjour,
Il ne s'agit, ici, ni de la commande printf interne de bash, ni de /usr/bin/printf, mais d'une option action propre à find |
|
|
20
|
|
|
#8 | |
|
Expert Confirmé
![]() Inscription : janvier 2011 Messages : 970 ![]() |
Citation:
En tout cas merci beaucoup
__________________
$ man woman Il n'y a pas de page de manuel pour woman. |
|
|
|
10
|
Copyright © 2000-2012 - www.developpez.com