Apologize folks, earlier i posted through mobile lot of typos and auto corrections.
Here is my scenario. I need to write a script to get the differences between two files (file1. txt and file2.txt) in the desired format as mentioned. I would really appreciate your help. Thank you all in advance.
I need to write a script to find out if there are any .c files created/removed from the last time i monitored the files available. i first created a file to contain all the .c files available on the system. (ls *.c > file1)
I created another file using the same command.
I used the comm file1... (4 Replies)
Hello Everybody!!!!!!!!! Request you to help me with the below mentioned issue:
I have 2 files say,
File 1:
a|4|7
b|3|2
c|8|8
d|8|9
File 2:
a|4|6
b|2|2
c|8|8
d|9|8
The third file(output file) should have:
Data mismatch in row 1 column 3
Data mismatch in row 2 coumn 2
Data... (3 Replies)
Hi
Hope you are having a great weeknd !! I had a question and need your expertise for this :
I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Hi,
I'm new to perl and i have to write a perl script that will compare to log/txt files and display the differences. Unfortunately I'm not allowed to use any complied binaries or applications like diff or comm.
So far i've across a code like this:
use strict;
use warnings;
my $list1;... (2 Replies)
I have 2 files that need to be compared. Email the differences if something is different and don't email if nothing is different. One or both of the files could be empty. One or both could have data in them.
example files
backup.doc.$(date +%y%m%d) file size is 0
backup.doc.$(TZ=CST+24... (4 Replies)
Hi....I'm having 2 xml files, one is having some special characters and another is a clean xml file does not have any special characters. Now I need one audit kind of file which will show me only from which line the special characters have been removed and the special characters.
Can you please... (1 Reply)
Hi All,
I have a list of files and want to find the difference between each file if there is difference then i want the file name to be printed and log the duplicate files
For example
Size Filename
23 a1
23 a2
23 a3
45 a4
If i diff a1 and a2 and find... (3 Replies)
Good day to all.
I'm relatively new in using the Sun Solaris OS. I would like to request your expertise in helping to solve a problem that I have at work. Not sure if this has been asked before but I have tried searching through the internet to no avail.
Basically I have 2 sun solaris... (8 Replies)
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 Replies
LEARN ABOUT V7
ppmtoxpm
ppmtoxpm(1) General Commands Manual ppmtoxpm(1)NAME
ppmtoxpm - convert a portable pixmap into an X11 pixmap
SYNOPSIS
ppmtoxpm [-name=xpmname] [-rgb=rgb-textfile] [-alphamask=pgmfile] [ppmfile]
Minimum unique abbrevations are acceptable.
DESCRIPTION
Reads a portable pixmap as input. Produces X11 pixmap (version 3) as output which can be loaded directly by the XPM library.
For example, to convert the file "dot" (found in /usr/include/X11/bitmaps), from xbm to xpm one could specify
xbmtopbm dot | ppmtoxpm -name dot
or, with a rgb text file (in the local directory)
xbmtopbm dot | ppmtoxpm -name dot -rgb rgb.txt
OPTIONS -name=xpmname
The -name option allows you to specify the prefix string which is printed in the resulting XPM output. If not specified, will
default to the filename (without extension) of the <ppmfile> argument. If you do not specify -name or ppmfile, (i.e. your input is
from Standad Input), the prefix string defaults to the string noname.
rgb=rgb-textfile
The -rgb option allows you to specify an X11 rgb text file for the lookup of color name mnemonics. This rgb text file is typically
the /usr/lib/X11/rgb.txt of the MIT X11 distribution, but any file using the same format may be used. When specified and a RGB
value from the ppm input matches a RGB value from the <rgb-textfile>, then the corresponding color name mnemonic is printed in the
XPM's colormap. If you don't specify -rgb or if the RGB values don't match, then ppmtoxpm produces the color specifications in the
#RGB, #RRGGBB, #RRRGGGBBB, or #RRRRGGGGBBBB hexadecimal format.
-alphamask=pgmfile
This option names a PGM file to use as an alpha (transparency) mask. The file must contain an image the same dimensions as the
input image. ppmtoxpm marks as transparent any pixel whose position in the alpha mask image is at most half white.
If you don't specify -alphamask, ppmtoxpm makes all pixels in the output opaque.
ppmcolormask is one way to generate an alpha mask file. You might also generate it by extracting transparency information from an
XPM file with the -alphaout option to xpmtoppm. There are similar options on other Netpbm converters that convert from formats that
include transparency information too.
LIMITATIONS
An option to match the closest (rather than exact) color name mnemonic from the rgb text would be a desirable enhancement.
Truncation of the least significant bits of a RGB value may result in nonexact matches when performing color name mnemonic lookups.
SEE ALSO ppmcolormask(1), xpmtoppm(1), ppm(5)
XPM Manual by Arnaud Le Hors lehors@mirsa.inria.fr
AUTHOR
Copyright (C) 1990 by Mark W. Snitily.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation. This software is provided "as is" without express or implied warranty.
This tool was developed for Schlumberger Technologies, ATE Division, and with their permission is being made available to the public with
the above copyright notice and permission notice.
Upgraded to XPM2 by
Paul Breslaw, Mecasoft SA, Zurich, Switzerland (paul@mecazh.uu.ch)
Thu Nov 8 16:01:17 1990
Upgraded to XPM version 3 by
Arnaud Le Hors (lehors@mirsa.inria.fr)
Tue Apr 9 1991
Tue Apr 9 1991 ppmtoxpm(1)