Grep
Jump to navigation
Jump to search
Grep exceptions from file[keisti]
grep -vf exclude.txt file.txt
Jeigu didesnis failas ir pasibaigia ramas[keisti]
Pirmiausia susortinam failus
cat file.txt | sort -u > file_sorted.txt cat exclude.txt | sort -u > exclude_sorted.txt
Darom compare
comm -23 file_sorted.txt exclude_sorted.txt > file_clean.txt