bash scripts
Last edited February 25, 2009
More by corporem »
find ve sed komutunun örnek kullanımı

find / -type f -name "*.txt" -exec sed -re "s/bulunan/degistirilen/g" -i '{}' \;
 
 Bu komut ile .txt ile biten dosyaları içindeki "bulunan" karakter satırını "degistirilen" karakter satırı ile değiştiriliyor.
Labels: find, sed
find komutu ile yazılan kod satırlarını bulmak

find -type f -name '*.java' -exec cat '{}' \;|wc -l
 
 .java ile biten dosyalardaki satır sayısı bulunuyor.
Labels: find
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.