List files in directory with bash

Aus crazylinux.de
Version vom 28. Januar 2008, 00:04 Uhr von Jonathan (Diskussion | Beiträge) (bash ls)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

list files in a diretcory an do some stuff with it.

#!/bin/sh

for files in $( ls /some_dir )
do
        python /merged-rrd.py /some_dir/old/$files /some_dir/save/$files $files
done