List files in directory with bash

Aus crazylinux.de
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