Sponsored Content
Full Discussion: diff command
Top Forums UNIX for Dummies Questions & Answers diff command Post 302213622 by red baron on Thursday 10th of July 2008 03:39:29 PM
Old 07-10-2008
nope

That's not what I want either. Both those functions output the entire line when there has been a single change to it. If I have two files like this:
File 1:
aaaaaaaa2
aaaaaaaa3
aaaaaaaa9
aaaaaaaa4
aaaaaaaa4
and File 2:
aaaaaaaa8
aaaaaaaa4
aaaaaaaa3
aaaaaaaa7
aaaaaaaa7
I'd like my output to be something like
<2
>8
<3
>4
<9
>3
<4
>7
<4
>7
so as to avoid having to deal with all those "a"s
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

diff command

Hi, I have 2 files i would like to have a DIFF command: 1.Marks differences between files or 2.Mentions just the differences Thanks :) (7 Replies)
Discussion started by: gilead29
7 Replies

2. Shell Programming and Scripting

Diff command problem

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)
Discussion started by: gvsreddy_539
4 Replies

3. Shell Programming and Scripting

diff command

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)
Discussion started by: Vichu
1 Replies

4. Shell Programming and Scripting

need help in diff command :

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)
Discussion started by: ali560045
5 Replies

5. AIX

diff command

hello i've two files. how i get the diff between the two files to new file. thanks best regards ariec (3 Replies)
Discussion started by: ariec
3 Replies

6. Shell Programming and Scripting

diff command help

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)
Discussion started by: jaydeep_sadaria
1 Replies

7. UNIX for Dummies Questions & Answers

Diff command of two files

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)
Discussion started by: cyberfrog
2 Replies

8. UNIX for Dummies Questions & Answers

Re:using the diff command

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)
Discussion started by: Prega
3 Replies

9. Shell Programming and Scripting

One-way diff command?

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

10. UNIX for Dummies Questions & Answers

Help with diff command

Platform :Oracle Linux 6.4 Shell : bash In the below sample, although the lines in a.txt and b.txt are jumbled up, there is only one difference : b.txt has an extra line NETHERLANDS $ cat a.txt SPAIN NORTH KOREA PORTUGAL GERMANY SYRIA $ $ $ cat b.txt GERMANY NORTH KOREA SPAIN... (6 Replies)
Discussion started by: John K
6 Replies
CREATEPYMB(1)						      General Commands Manual						     CREATEPYMB(1)

NAME
createPYMB, readPYBase, readPYMB, mb2org, scel2org - fcitx Pinyin related tools SYNOPSIS
createPYMB <PinyinFile> <PhraseFile> readPYBase [-b <PinyinMBFile>] [-h] readPYMB [-f <PhraseMBFile>] [-s] [-h] mb2org [-b <PinyinMBFile>] [-f <PhraseMBFile>] [-s] [-h] scel2org [-o <Phrase File>] [-h] DESCRIPTION
-b <PinyinMBFile> If not specified, it will read system default pybase.mb. -f <PhraseMBFile> If not specified, it will read user default PhraseMBFile, which is ~/.config/fcitx/pyusrphrase.mb. -s If specified, it will read PhraseMBFile as system format, otherwise will read it as user format. -h display help and exit Pinyin File Pinyin File is a file with pinyin and one character per line, separated with space. One available file is in the source of fcitx, named gbkpy.org. Phrase File Phrase File is a file with full pinyin separated with ' and the corresponding phrase. The default phrase file of fcitx can be down- loaded at http://fcitx.googlecode.com/files/pinyin.tar.gz. Pinyin MB File Pinyin MB File is the binary format of Pinyin File. Phrase MB File Phrase MB File is the binary format of Pinyin File, user's history phrase mb file is ~/.config/fcitx/pyuserphrase.mb. There is two different format, one is system format which can only generated by createPYMB , and other is user format which can only generated while input with fcitx Pinyin IM. Output of createPYMB will be pybase.mb, which is Pinyin MB File, and pyphrase.mb, which is Phrase MB File. Output of mb2org, readPYBase and readPYMB will be stdout. readPYBase and readPYMB are designed to output more debug message of Pinyin MB File and Phrase MB File. mb2org will output in the format of Phrase File. scel2org is used for transform Sogou Scel File to Phrase File of fcitx. Output of scel2org will be stdout if -o is not used. SEE ALSO
Please see the homepage at http://www.fcitx.org/ and http://fcitx.googlecode.com/ 2010-12-16 CREATEPYMB(1)
All times are GMT -4. The time now is 04:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy