Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 30/12/2007, à 13:20

Beneludo

Possible dans une console ?

Bonjour,
J'ai une liste de fichiers audio (diverse format: ogg, mp3,wma etc) dans un répertoire, et j'aimerais lister les propriété audio de tous ces fichier dans une console (et si possible en une seule fois)
un truc du style

 ls -"la commande qui permet de voir les propriétés audio des fichiers, notament le débit"

Est-ce possible ?
D'avance je vous remerci
++ Ludo.


-- Ludo --
Ubuntu 11.04 -- Intel i5 3Ghz -- Nvidia GeForce GTS 450 -- Gigabyte H55-UDH3
Linux User
Touring Moto Club

Hors ligne

#2 Le 31/12/2007, à 19:28

tylhdar

Re : Possible dans une console ?

file nomdufichier

par contre ça ne fonctionne que pour un fichier a la fois...


un matériel non compatible linux est un matériel défectueux
ubuntu 10.4 sur pc1 ; debian squeeze sur pc2

Hors ligne

#3 Le 31/12/2007, à 19:57

alnitrik

Re : Possible dans une console ?

Tu te places dans le repertoire et tu tapes :

for i in $(ls); do file $i;done

Pensez à passer vos topics en [RÉSOLU].
Pour cela éditez votre premier message et modifiez le titre.

Hors ligne

#4 Le 01/01/2008, à 18:49

Beneludo

Re : Possible dans une console ?

Merci pour ta réponse.
Je viens d'essayer (bon j'ai beaucoup de fichiers), mais j'ai un certain nombre d'erreurs, et je ne sais pas d'ou cela peut provenir.

Beautiful.11.mp3: ERROR: cannot open `Beautiful.11.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.12.mp3: ERROR: cannot open `Beautiful.12.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)

Blunt: ERROR: cannot open `Blunt' (No such file or directory)
/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.13.mp3: ERROR: cannot open `Beautiful.13.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)

You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.14.mp3: ERROR: cannot open `Beautiful.14.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)
/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.15.mp3: ERROR: cannot open `Beautiful.15.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.16.mp3: ERROR: cannot open `Beautiful.16.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.17.mp3: ERROR: cannot open `Beautiful.17.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.18.mp3: ERROR: cannot open `Beautiful.18.mp3' (No such file or directory)


James_Blunt-you_re_beautiful_192_lame_cbr_ex.mp3: MPEG ADTS, layer III, v2,  64 kBits, 22.05 kHz, JntStereo
james: ERROR: cannot open `james' (No such file or directory)
blunt: ERROR: cannot open `blunt' (No such file or directory)
/dev/stdin: very short file (no magic)
you're: ERROR: cannot open `you're' (No such file or directory)
beautiful.1.mp3: ERROR: cannot open `beautiful.1.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
blunt: ERROR: cannot open `blunt' (No such file or directory)
/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.1.mp3: ERROR: cannot open `beautiful.1.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.1.mp3: ERROR: cannot open `beautiful.1.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful: ERROR: cannot open `Beautiful' (No such file or directory)
(1).mp3: ERROR: cannot open `(1).mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.1.mp3: ERROR: cannot open `Beautiful.1.mp3' (No such file or directory)
JAMES: ERROR: cannot open `JAMES' (No such file or directory)
BLUNT: ERROR: cannot open `BLUNT' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.1.mp3: ERROR: cannot open `beautiful.1.mp3' (No such file or directory)
james: ERROR: cannot open `james' (No such file or directory)
blunt: ERROR: cannot open `blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
you're: ERROR: cannot open `you're' (No such file or directory)
beautiful.2.mp3: ERROR: cannot open `beautiful.2.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful: ERROR: cannot open `Beautiful' (No such file or directory)
(2).mp3: ERROR: cannot open `(2).mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.2.mp3: ERROR: cannot open `Beautiful.2.mp3' (No such file or directory)
JAMES: ERROR: cannot open `JAMES' (No such file or directory)
BLUNT: ERROR: cannot open `BLUNT' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.2.mp3: ERROR: cannot open `beautiful.2.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.3.mp3: ERROR: cannot open `Beautiful.3.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.4.mp3: ERROR: cannot open `Beautiful.4.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.5.mp3: ERROR: cannot open `Beautiful.5.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.6.mp3: ERROR: cannot open `Beautiful.6.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.7.mp3: ERROR: cannot open `Beautiful.7.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.8.mp3: ERROR: cannot open `Beautiful.8.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.9.mp3: ERROR: cannot open `Beautiful.9.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful: ERROR: cannot open `Beautiful' (No such file or directory)
_: ERROR: cannot open `_' (No such file or directory)
ED301.hu: ERROR: cannot open `ED301.hu' (No such file or directory)
_.mp3: ERROR: cannot open `_.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautifull.mp3: ERROR: cannot open `Beautifull.mp3' (No such file or directory)
james: ERROR: cannot open `james' (No such file or directory)
blunt: ERROR: cannot open `blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
you're: ERROR: cannot open `you're' (No such file or directory)
beautiful.mp3: ERROR: cannot open `beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
blunt: ERROR: cannot open `blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.mp3: ERROR: cannot open `beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.mp3: ERROR: cannot open `beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.mp3: ERROR: cannot open `Beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You�re: ERROR: cannot open `You�re' (No such file or directory)
Beautiful.mp3: ERROR: cannot open `Beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)
file: invalid option -- Y
file: invalid option -- o
file: invalid option -- u
file: invalid option -- '
file: option requires an argument -- e
Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
       file -C -m magicfiles
Try `file --help' for more information.
Beautiful.mp3: ERROR: cannot open `Beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt--Youre: ERROR: cannot open `Blunt--Youre' (No such file or directory)
Beautiful.mp3: ERROR: cannot open `Beautiful.mp3' (No such file or directory)
JAMES: ERROR: cannot open `JAMES' (No such file or directory)
BLUNT: ERROR: cannot open `BLUNT' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
beautiful.mp3: ERROR: cannot open `beautiful.mp3' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful: ERROR: cannot open `Beautiful' (No such file or directory)
(Remix).mp3: ERROR: cannot open `(Remix).mp3' (No such file or directory)
Josh: ERROR: cannot open `Josh' (No such file or directory)
Groban: ERROR: cannot open `Groban' (No such file or directory)

/dev/stdin: very short file (no magic)
Alejate.mp3: ERROR: cannot open `Alejate.mp3' (No such file or directory)
Josh: ERROR: cannot open `Josh' (No such file or directory)
Groban: ERROR: cannot open `Groban' (No such file or directory)

/dev/stdin: very short file (no magic)
Mai.mp3: ERROR: cannot open `Mai.mp3' (No such file or directory)
Josh: ERROR: cannot open `Josh' (No such file or directory)
Groban: ERROR: cannot open `Groban' (No such file or directory)

/dev/stdin: very short file (no magic)
Oceano.mp3: ERROR: cannot open `Oceano.mp3' (No such file or directory)
Josh: ERROR: cannot open `Josh' (No such file or directory)
Groban: ERROR: cannot open `Groban' (No such file or directory)

/dev/stdin: very short file (no magic)
You: ERROR: cannot open `You' (No such file or directory)
Are: ERROR: cannot open `Are' (No such file or directory)
Loved.mp3: ERROR: cannot open `Loved.mp3' (No such file or directory)
Metallica: ERROR: cannot open `Metallica' (No such file or directory)

/dev/stdin: very short file (no magic)
Nothing: ERROR: cannot open `Nothing' (No such file or directory)
Else: ERROR: cannot open `Else' (No such file or directory)
Matters.mp3: ERROR: cannot open `Matters.mp3' (No such file or directory)
Naruto: ERROR: cannot open `Naruto' (No such file or directory)

/dev/stdin: very short file (no magic)
James: ERROR: cannot open `James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Goodbye: ERROR: cannot open `Goodbye' (No such file or directory)
my: ERROR: cannot open `my' (No such file or directory)
lover.mp3: ERROR: cannot open `lover.mp3' (No such file or directory)
No: ERROR: cannot open `No' (No such file or directory)
Bravery: ERROR: cannot open `Bravery' (No such file or directory)
Blunt,: ERROR: cannot open `Blunt,' (No such file or directory)
James: ERROR: cannot open `James' (No such file or directory)
file: invalid option -- .
Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
       file -C -m magicfiles
Try `file --help' for more information.
Ridan: ERROR: cannot open `Ridan' (No such file or directory)

/dev/stdin: very short file (no magic)
Ulysse.2.mp3: ERROR: cannot open `Ulysse.2.mp3' (No such file or directory)
file: unrecognized option `--sbek.free.fr'
Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
       file -C -m magicfiles
Try `file --help' for more information.
Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
       file -C -m magicfiles
Try `file --help' for more information.
james: ERROR: cannot open `james' (No such file or directory)
blunt: ERROR: cannot open `blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
you're: ERROR: cannot open `you're' (No such file or directory)
beautiful.mp3: ERROR: cannot open `beautiful.mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
01: ERROR: cannot open `01' (No such file or directory)

/dev/stdin: very short file (no magic)
High.mp3: ERROR: cannot open `High.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
02: ERROR: cannot open `02' (No such file or directory)

/dev/stdin: very short file (no magic)
You're: ERROR: cannot open `You're' (No such file or directory)
Beautiful.mp3: ERROR: cannot open `Beautiful.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
03: ERROR: cannot open `03' (No such file or directory)

/dev/stdin: very short file (no magic)
Wisemen.mp3: ERROR: cannot open `Wisemen.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
04: ERROR: cannot open `04' (No such file or directory)

/dev/stdin: very short file (no magic)
Goodbye: ERROR: cannot open `Goodbye' (No such file or directory)
My: ERROR: cannot open `My' (No such file or directory)
Lover.mp3: ERROR: cannot open `Lover.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
05: ERROR: cannot open `05' (No such file or directory)

/dev/stdin: very short file (no magic)
Tears: ERROR: cannot open `Tears' (No such file or directory)
And: ERROR: cannot open `And' (No such file or directory)
Rain.mp3: ERROR: cannot open `Rain.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
06: ERROR: cannot open `06' (No such file or directory)

/dev/stdin: very short file (no magic)
Out: ERROR: cannot open `Out' (No such file or directory)
Of: ERROR: cannot open `Of' (No such file or directory)
My: ERROR: cannot open `My' (No such file or directory)
Mind.mp3: ERROR: cannot open `Mind.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
07: ERROR: cannot open `07' (No such file or directory)

/dev/stdin: very short file (no magic)
So: ERROR: cannot open `So' (No such file or directory)
Long: ERROR: cannot open `Long' (No such file or directory)
Jimmy.mp3: ERROR: cannot open `Jimmy.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
08: ERROR: cannot open `08' (No such file or directory)

/dev/stdin: very short file (no magic)
Billy.mp3: ERROR: cannot open `Billy.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
09: ERROR: cannot open `09' (No such file or directory)

/dev/stdin: very short file (no magic)
Cry.mp3: ERROR: cannot open `Cry.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]James: ERROR: cannot open `[Soul]James' (No such file or directory)
Blunt: ERROR: cannot open `Blunt' (No such file or directory)

/dev/stdin: very short file (no magic)
Back: ERROR: cannot open `Back' (No such file or directory)
To: ERROR: cannot open `To' (No such file or directory)
Bedlam: ERROR: cannot open `Bedlam' (No such file or directory)

/dev/stdin: very short file (no magic)
10: ERROR: cannot open `10' (No such file or directory)

/dev/stdin: very short file (no magic)
No: ERROR: cannot open `No' (No such file or directory)
Bravery.mp3: ERROR: cannot open `Bravery.mp3' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)
[Soul]: ERROR: cannot open `[Soul]' (No such file or directory)
Josh: ERROR: cannot open `Josh' (No such file or directory)
Groban: ERROR: cannot open `Groban' (No such file or directory)

/dev/stdin: very short file (no magic)
You: ERROR: cannot open `You' (No such file or directory)
are: ERROR: cannot open `are' (No such file or directory)
loved: ERROR: cannot open `loved' (No such file or directory)
(Rusweb.net).mp3: ERROR: cannot open `(Rusweb.net).mp3' (No such file or directory)


Where_is_my_mind-James_Blunt.mp3: MPEG ADTS, layer III, v2,  64 kBits, 22.05 kHz, JntStereo

Merci de ton aide.

Ludo.


-- Ludo --
Ubuntu 11.04 -- Intel i5 3Ghz -- Nvidia GeForce GTS 450 -- Gigabyte H55-UDH3
Linux User
Touring Moto Club

Hors ligne

#5 Le 01/01/2008, à 19:42

skt310

Re : Possible dans une console ?

Tu dois sûrement avoir des espaces dans tes noms de fichier.
Esseye avec le code suivant:

#!/bin/sh
IFS="
"
cd $1
for i in $(ls); do
    file $i
done

tu lui donne le nom que tu veut par exemple file info.sh et tu l'utilise comme ça: sh fileinfo.sh [chemin vers ton dossier]

Dernière modification par skt310 (Le 01/01/2008, à 19:46)


NOVATUX : Besoin d'un ordinateur parfaitement compatible avec linux, un très bon contact avec le vendeur, des conseils, une instalation personalisée. Bref que du bonheur quoi. Allez voir ce site! J'ai acheté mon portable ici et vraiment c'est un plaisir!

Hors ligne

#6 Le 01/01/2008, à 20:12

HymnToLife

Re : Possible dans une console ?

Pourquoi chercher midi à quatorze heures ?

for i in *.mp3; do file "$i"; done

En te trouvent dans le répertoire où sont stockés tes mp3 bien entendu.


- Rodrigue, as-tu du cœur ?
- Non, mais j'ai du pique !

Hors ligne

#7 Le 01/01/2008, à 21:50

Beneludo

Re : Possible dans une console ?

Bonsoir,
Merci HymnToLife pour ta commande, c'est pile poil ce que je recherchais, pourrais tu me l'expliquer STP ?
Merci aussi autre de m'avoir aidé.
++
Ludo.


-- Ludo --
Ubuntu 11.04 -- Intel i5 3Ghz -- Nvidia GeForce GTS 450 -- Gigabyte H55-UDH3
Linux User
Touring Moto Club

Hors ligne