for etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
for etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

20 Kasım 2017 Pazartesi

Batch - Dosya ismindeki uzantıyı silmek

@echo off
    for /R "C:\Path" %%f in (*.txt) do (
    echo %%~nf
)
pause

Bash - Dosyanın her satırına string prepend etmek

for /f "tokens=*" %a in (input.txt) do (echo oncul_metin.%a) >> output.txt

3 Temmuz 2012 Salı

Unix - Toplu rename

for file in *.txt;
do
    mv -v $file $file.old;
done

Unix - Dizindeki tüm arşivleri aynı isimde dizinlere açmak


for z in *.jar; do
d=`basename $z .jar`
mkdir $d && unzip $z -d $d
done