Monday 14, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Tuesday, 29 August 2017

sdiff Linux Command

sdiff

sdiff -o outfile [options] from to

Find differences between the two files from and to and merge interactively, writing the results to outfile.

Options

--
Treat remaining options as filenames, even if they begin with -.

-a, --text
Treat all files as text and compare line by line.

-b, --ignore-space-change
Ignore differences in whitespace.

-B, --ignore-blank-lines
Ignore added or missing blank lines.

-d, --minimal
Use a different algorithm to find fewer changes. This option causes sdiff to run more slowly.

-H, --speed-large-files
Heuristically speed comparison of large files with many small scattered changes.

-i, --ignore-case
Ignore case changes.

-I regexp, --ignore-matching-lines=regexp
Ignore any changes that insert or delete lines matching the regular expression regexp.

--ignore-all-space
Ignore whitespace when comparing lines.

-l, --left-column
Print only the left column of common lines.

-o file, --output=file
Write merged output to the specified file.

-s, --suppress-common-lines
Suppress common lines.

-t, --expand-tabs
Convert tabs to spaces in the output to preserve alignment.

-v, --version
Print version information and exit.

-w cols, --width=cols
Set the output to cols columns wide.

-W
Ignore horizontal whitespace when comparing lines.

Interactive commands

ed
Edit, then use both versions, with a header for each.

eb
Edit, then use both versions.

el
Edit, then use the left version.

er
Edit, then use the right version.

e
Edit a new version to replace the others.

h,?
Display a list of these commands.

l
Use the left version.

r
Use the right version.

s
Silently include common lines.

v
Verbosely include common lines.

q
Quit.

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • Execute command as the superuser - sudo Linux Command sudo sudo [options] [command] Description If you are allowed, execute command as the superuser. Authorized users of sudo and the commands they are permitted to execute are listed in the sudo configuration file, /etc/sudoe… Read More
  • Report on active processes ps Linux Command ps ps [options] Description Report on active processes. ps has three types of options. GNU long options start with two hyphens, which are required. BSD options may be grouped and do not start with a hyphen, while Unix98 o… Read More
  • less - paging through files and output Linux Command less less [options] [filename] Description less is a program for paging through files or other output. It was written in reaction to the perceived primitiveness of more (hence its name). Some commands may be preceded by a… Read More
  • Switch User su Linux Command su su [option] [user] [shell_args] Description Create a shell with the effective user ID user. If no user is specified, create a shell for a privileged user (i.e., become a superuser). Enter EOF to terminate. You can run … Read More
  • tar Linux Command tar tar [options] [tarfile] [other-files] Description Copy files to or restore files from an archive medium. If any files are directories, tar acts on the entire subtree. Options need not be preceded by - (though they may… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: sdiff Linux Command Rating: 5 Reviewed By: eHowToNow