Two questions:
1. What is the role of less than character in red below ?
2. What is the role of double pipe operater ?
1. The '<' character is used to redirect the output of sort to the diff utility. This is needed if you're not specifying a file directly to diff.
2. || is equal to OR, && is equal to AND. In this case it means that if the diff command was succesfull, echo there is no difference (AND). If the diff command was not succesfull, echo that there is a difference (OR).
Folks,
I am Diff'ing 2 identical files..and the result is, it shows all the lines from 2 files (saying nothing is being matched).
If I copy the content from 1 of the file and paste in a newly created file and then do the diff, it equals.
2 files are xml files.
I've tried many... (4 Replies)
All,
How to exclude a directory while diff execution?
For ex:
To exclude file which we don't want to see diff, we have -x <filename>.
Thanks in advance (1 Reply)
i have 2 file named test1,test2
contents of test1:
1
2
3
---------------------------
contents of test2:
1
2
3
4
5
--------------------------------------------------------
my desired o/p should be:
diff test2 test1
4 (5 Replies)
Is there any option for the diff command (or maybe an entirely different command) that will give you only the text that differs between two files? When I use diff file1 file2, if any text on that line differs from one file to the next it'll print out the entire line. I'd like to see only the text... (2 Replies)
Hi all
diff file1 file 2
command will give us op of diff between two file. But it aslo give its position and sign "<" or ">". I dont want position and sign in op. Only diff of content should be come as op.
Kindly help me for this.
Regards
Jaydeep (1 Reply)
Hi,
I use the diff command to compare two files and append this output to a file. I would like to now not only produce the differences but be able to output the total number of changes made, the number of new files added and the number of files deleted, is there I can do this using the diff... (2 Replies)
Hi Guys
I have a situation where I would like to use the diff command but I would like to see "number" of differences and than send it through and if statement and than view the difference if greater than 1.
Eg. diff file1 file2 > than gives the "number" and I than say -
if number >1... (3 Replies)
Hello,
I am trying to find the different files between multiple directories in Linux, here is a small assumption of what is inside the directories
dir1 dir2 dir3
1.txt 1.txt 1.txt
2.txt 3.txt 3.txt
5.txt 4.txt 5.txt
6.txt 7.txt 8.txt
I am using the following... (4 Replies)
Discussion started by: Error404
4 Replies
LEARN ABOUT CENTOS
ibus-table-createdb
IBUS-TABLE-CREATEDB(1)IBUS-TABLE-CREATEDB(1)NAME
ibus-table-createdb - create ibus-table database from table source
SYNOPSIS
ibus-table-createdb [ [ -n name ] [ --name name ] ] [ [ -s source ] [ --source source ] ] [ [ -e extra ] [ --extra extra ] ] [
[ -p pinyin ] [ --pinyin pinyin ] ] [ -o ] [ --no-create-index ] [ -i ] [ --create-index-only ] [ -d ] [ --debug ]
DESCRIPTION
ibus-table-createdb creates a database for ibus-table from a source table.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-n database-file specifies the file name for the binary database for the IME. The default is ''. If the file name of the database is
not specified, the file name of the source file before the first '.' will be appended with '.db' and that will be used as the file
name of the database.
-s source-file specifies the file which contains the source of the IME. The default is ''.
-e extra-words-file specifies the file name for the extra words for the IME. The default is ''.
-p pinyin-file specifies the source file for the pinyin. The default is '/usr/share/ibus-table/data/pinyin_table.txt.bz2'.
-o Do not create an index for a database (Only for distribution purposes, a normal user should not use this flag!)
-i Only create an index for an existing database. Specifying the file name of the binary database with the -n or --name option is
required when this option is used.
-d Print extra debug messages.
EXAMPLES
ibus-table-createdb -n ipa-x-sampa.db -s ipa-x-sampa.txt
Create the binary database ``ipa-x-sampa.db'' from the source file ``ipa-x-sampa.txt''.
ibus-table-createdb -i -n ipa-x-sampa.db
Create an index for the database ``ipa-x-sampa.db''.
AUTHOR
This manual page was written by Mike FABIAN <mfabian@redhat.com>.
Apr 18, 2013 IBUS-TABLE-CREATEDB(1)