List files in directory with bash: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(bash ls) |
(typo) |
||
Zeile 1: | Zeile 1: | ||
list files in a diretcory an do some stuff with it. | list files in a diretcory an do some stuff with it. | ||
<source lang=" | <source lang="bash"> | ||
#!/bin/sh | #!/bin/sh | ||
for files in $( ls /some_dir ) | for files in $( ls /some_dir ) | ||
do | do | ||
python /merged-rrd.py /some_dir/old/$files /some_dir/save/$files $files | |||
done | done | ||
</source> | </source> |
Aktuelle Version vom 28. Januar 2008, 00:05 Uhr
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