Try 'diff -Nau' and for directories full of file use 'diff -Naur dir1 dir2'
You can use the output as input to 'patch' and related utilities.
Originally Posted by eaglelinux
When I use diff to show difference between two files, I take this output:
Now I want to use diff to take an output without symbols " --- > >
", " <
", " 5,30c5,6
" , so only difference between texts.
Thank you !
No you DON'T want that (despite what you think). If you didn't have the initial characters you would have no means to tell which lines were included vs. excluded.
Learn to use diff -u... and patch.
If you want to persist in doing things the hard way, then learn to use grep and sed.