10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys i have 3 files,
but i want to compare and diff only the 2nd column
path=`/home/whois/doms`
for i in `cat domain.tx`
do
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
2. UNIX for Dummies Questions & Answers
Hello.
I have to compare two different fastq.gz files that I concatenated, and then zipped into a new merge fastq.gz file.
The files that need to be merged are:
Sample-136-P_S7_L001_R1_001.fastq.gz and Sample -136-P_S7_L002_R1_001.fastq.gz
They were meged to a new file called:... (1 Reply)
Discussion started by: arcolombo698
1 Replies
3. UNIX for Dummies Questions & Answers
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
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: red baron
2 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:
Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).
The other file is file1.bcd01abc (the extension... (2 Replies)
Discussion started by: ricky007
2 Replies
9. UNIX for Dummies Questions & Answers
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
10. Shell Programming and Scripting
Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies