Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: diff

23 Jun

Compare contents of two files

Compare contents of two files by deleting only unique lines from ‘file1’


comm -1 file1 file2
admin Posted in Command Line, Linux comm, command, compare, diff, file, Linux Leave a comment
25 Dec

cmp Command – Compare Files

The command cmp is similar to diff:


# cmp file1 file2   
file1 file2 differ: byte 10, line 1
admin Posted in Uncategorized cmp, command, compare, diff, files, Linux Leave a comment
22 Dec

Basic Diff

If you use the diff command, you will be able to see the difference between the files as shown below:


diff file1 file2

diff -y file1 file2 -W 120 #View side by side
admin Posted in Command Line, Linux command, compare, diff, difference, files, Linux Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑