grep kullanarak text dosyalarının boş olmayan satırlarını görüntüleyelim.
[deneme]$ grep . * 1.txt:asd 1.txt:asd 1.txt:as 1.txt:d 1.txt:234 1.txt:234 1.txt:23 1.txt:4 1.txt:34 1.txt:23 1.txt:4 2.txt:12312 2.txt:12 2.txt:3 2.txt:34 2.txt:45 2.txt:34 2.txt:5 2.txt:34 2.txt:5345 2.txt:3 2.txt:45 2.txt:34 2.txt:5
grep kullanarak boş satırları da görmek istiyorsak
deneme]$ grep ^ * 1.txt:asd 1.txt:asd 1.txt:as 1.txt:d 1.txt: 1.txt: 1.txt:234 1.txt: 1.txt:234 1.txt:23 1.txt:4 1.txt:34 1.txt:23 1.txt:4 2.txt:12312 2.txt:12 2.txt:3 2.txt: 2.txt:34 2.txt:45 2.txt:34 2.txt:5 2.txt:34 2.txt:5345 2.txt:3 2.txt:45 2.txt:34 2.txt:5 More kullanarak benzer etkiyi yapmak için [deneme]$ more * | cat :::::::::::::: 1.txt :::::::::::::: asd asd as d 234 234 23 4 34 23 4 :::::::::::::: 2.txt :::::::::::::: 12312 12 3 34 45 34 5 34 5345 3 45 34 5 Aynı etkiyi head ile yapmak [deneme]$ head -n 99999 * ==> 1.txt <== asd asd as d 234 234 23 4 34 23 4 ==> 2.txt <== 12312 12 3 34 45 34 5 34 5345 3 45 34 5
Bir cevap yazın