Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
1 2 3 4 5
1 3 12 44 55
cat 2.txt | while read line ; do if ! grep -q $line 1.txt; then echo $line; fi ; done
diff 1.txt 2.txt | grep -E "^>" | sed -e "s/^> //g"
root@617945:~/test/diff# diff 1.txt 2.txt | grep -E "^>" | sed -e "s/^> //g" 11 22 33 2 root@617945:~/test/diff# cat 1.txt 1 2 3 4 5 6 7 8 9 0 root@617945:~/test/diff# cat 2.txt 1 3 5 7 0 11 22 33 2
sort -n 1.txt > 1.sort.txt sort -n 2.txt > 2.sort.txt diff 1.sort.txt 2.sort.txt | ....
happy hacking ! line2 line3 line4 this is the original text
Ant1 GNU is not UNIX happy hacking ! line22 line4
Ant1 GNU is not UNIX line22 line4