Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [Opgelost] Inhoud van een Directory (map) opslaan in text bestand  (gelezen 1650 keer)

Beste Leden,

is een een commando in ubuntu Om de inhoud van b.v. een map vol met mp3's in een text bestand op te slaan?
om deze dan later te kunnen bewerken in OpenOffice?

Groet,
Alexander


« Laatst bewerkt op: 2008/12/29, 22:04:13 door Ron »
HP 530 Laptop / 2 Gig ram / 120 Gig hd
Ubuntu 11.10

Offline ivo

  • Lid
Re: Inhoud van een Directory (map) opslaan in text bestand
« Reactie #1 Gepost op: 2008/12/28, 20:53:21 »
Open een terminal window en tik in

cd /directory/waar/bestanden/staan

ls > bestandnaam  (korte listing)
of ls -l > bestandnaam  (lange listing)
of ls -sS > bestandnaam (gesorteerd van grootste naar kleinste bestand)
of ls -ltr > bestandnaam (gesorteerd van oudste naar nieuwste time stamp)

In het bestand "bestandnaam" staat nu de inhoud van je directory.

Van elk programma (in dit geval ls) dat een output naar het scherm geeft, kun je die output in een bestand opvangen.



There are only 10 types of people in the world; those who understand binary and those who don't.

Re: Inhoud van een Directory (map) opslaan in text bestand
« Reactie #2 Gepost op: 2008/12/29, 18:34:23 »
Bedankt Ivo...

Dit is wat ik zocht...

Groet,
Alexander
HP 530 Laptop / 2 Gig ram / 120 Gig hd
Ubuntu 11.10

Offline ivo

  • Lid
Re: Inhoud van een Directory (map) opslaan in text bestand
« Reactie #3 Gepost op: 2008/12/29, 21:38:40 »
Geen dank.
Markeer je het bericht als opgelost svp.
There are only 10 types of people in the world; those who understand binary and those who don't.