07-27-2012
How to find duplicates contents in a files by comparing other files?
Hi Guys ,
we have one directory ...in that directory all files will be set on each day..
files must have header ,contents ,footer..
i wants to compare the header,contents,footer ..if its same means display an error message as 'files contents same'
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have a problem trying to run a while statement.
I have files under one directory that i need to compare to a value in filex and update that file with the result
files in the directory are
DFC1.
DFC5.
DFC345.
DFC344.
DFC9.
The program i am trying to run will take the number... (3 Replies)
Discussion started by: SummitElse
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I need to compare todays file to yesterdays file to find deletes.
I cannot use comm -23 file.old file.new.
Because each record may have a small change in it but is not really a delete.
I have two delimited files. the first field in each file is static. All other fields may change. I... (2 Replies)
Discussion started by: eja
2 Replies
3. Shell Programming and Scripting
Hi,
I hav two files a1.txt and a2.txt,
a1.txt contains:
---------------
asdev ebcdev ....
a2.txt contains:
---------------
asdev ebcdev prod ....
a1.txt will be updated by a process,..
now i want to compare two files and i want to see data which is not in a1.txt
am i clear....??
... (3 Replies)
Discussion started by: rrs
3 Replies
4. 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
5. Shell Programming and Scripting
hi i have two files and i want to compare both the files and find out mismatch in 3rd file
file1
00354|1|0|1|1|0|0|0|1|2
52424|1|0|1|1|0|0|0|1|2
43236|1|0|1|1|0|0|0|1|2
41404|1|0|1|1|0|0|0|1|2
79968|1|0|1|1|0|0|0|1|2
file2
00354|1|0|1|1|0|0|0|1|2
52424|1|0|1|1|0|0|0|0|2... (9 Replies)
Discussion started by: dodasajan
9 Replies
6. UNIX for Dummies Questions & Answers
example data
5666700842511TAfmoham03151008075205999900000001000001000++
5666700843130MAfmoham03151008142606056667008390315100005001
6666666663130MAfmoham03151008142606056667008390315100005001
I'd like to sort on position 10-14 where the characters are eq "130MA".
Then based on positions... (0 Replies)
Discussion started by: mmarshall
0 Replies
7. Shell Programming and Scripting
I have a directory where lot of "gzip" files are dropped in every 5 minutes. There is an application which will process these gzip and move it to another directory but will leave a gzip.out file with lot of output data.
I need to remove all the outfiles except for the one which is being... (1 Reply)
Discussion started by: gubbu
1 Replies
8. Shell Programming and Scripting
Hi all ,
am using unix aix ..
how to check the duplicates files contents and moving to someother folders
ex ..
i have files called qqq
cat qqq
1
2
3
i have another file qqq02
cat qqq02
1
2
3
here qqq02 has having same contents as qqq file..
i need to check the duplicates files... (1 Reply)
Discussion started by: Venkatesh1
1 Replies
9. Shell Programming and Scripting
Hey guys,
need help with a script I'm trying to write.
Basically I need to compare the contents of a folder called "profiles"
with a list of files called "template".
when the file matches the contents of the folder it needs to set a variable called "checked" to "1"
Cookies to anyone... (4 Replies)
Discussion started by: Scriporium
4 Replies
10. UNIX for Dummies Questions & Answers
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
Basically
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
Discussion started by: Clyde Lovett
5 Replies
LEARN ABOUT DEBIAN
sgml2html
SGML2HTML(1) General Commands Manual SGML2HTML(1)
NAME
sgml2html - create HTML output from a LinuxDoc DTD SGML source file
SYNOPSIS
sgml2html [generic-option...] [--split 0|1|2 ] [--toc 0|1|2 ] [--dosnames] [--imagebuttons] file[.sgml]
DESCRIPTION
sgml2html is an old and obsoleted form of the html converter command of LinuxDoc-Tools. It is recommended to switch the new form linuxdoc
-B html now. This converts a LinuxDoc DTD SGML source file to HTML output. Output will appear in the top level file file.html and file-
n.html for each section, where file is the name of the SGML source file and n is the section name.
The attribute/value pair "output=html" is set for conditionals.
OPTIONS
sgml2html accepts all the generic options described in linuxdoc(1), and the following specific options:
--split, -s
What level to split source documents. 0 = don't split, 1 = split by major sections, 2 = split by subsections.
--toc, -T
What level to generate toc.
0 = don't generate toc at all,
1 = includes major sections(/chapters/parts),
2 = includes subsections.
--dosnames, -h
Use ".htm" rather than ".html" as the extension of
--imagebuttons, -I
Use the "next", "previous", and "contents" arrow image icons included in /usr/share/linuxdoc-tools as navigation buttons.
--footer, -F
Use the specified file as the footer in each resulted html file. Default footer is just plain
</BODY>
</HTML>
--header, -H
Use the specified file as the top part of the header in each resulted html file. Note this is not the full part of the header.
(i.e. the title and the links (next,previous,contents) in the default header are retained. Default is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
file The SGML source file, named either file or file.sgml.
FILES
Many files and executables in /usr/share/linuxdoc-tools and /usr/bin are used.
BUGS
None known.
AUTHOR
Originally written by Greg Hankins <greg.hankins@cc.gatech.edu>, and Cees de Groot <cg@cdegroot.com> for SGML-Tools (v1). Currently main-
tained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools.
SEE ALSO
linuxdoc(1), sgml2info(1), sgml2latex(1), sgml2lyx(1), sgml2rtf(1), sgml2txt(1), sgmlcheck(1).
16 May 2000 SGML2HTML(1)