Save the following in a file named diffs.awk:
and make it executable:
then, for your example, invoke it with:
With File1 and File2 as shown in the first message in this thread, the output produced is:
Hi
I want to archive the following all the files and directory like listed below:
$ ls -a
. .. .bash_history .bash_logout .bash_profile .bashrc .emacs .mysql_history public_html .viminfo
What I tried is to use the following command
$ gtar cvzf allmyfiles.tar.gz *
... (1 Reply)
I have searched about 30 threads, a load of Google pages and cannot find what I am looking for. I have some of the parts but not the whole. I cannot seem to get the puzzle fit together.
I have three folders, two of which contain different versions of multiple files, dist/file1.php dist/file2.php... (4 Replies)
Hi there,
in near future I have to change my work surrounding from HP UNIX to Windows Vista (great to get rid of old hardware :), but bad to loose UNIX :( ). As I heavily use KSH scripts to do my job, I was wondering, if there is any HowTo available, supporting me in re-writing the scripts to... (4 Replies)
Hi, all:
I've got two folders, say, "folder1" and "folder2".
Under each, there are thousands of files.
It's quite obvious that there are some files missing in each. I just would like to find them. I believe this can be done by "diff" command.
However, if I change the above question a... (1 Reply)
I have four files, I need to compare these files together.
As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each file with other which will increase the codes.
Please suggest if you know some commands whcih can... (6 Replies)
Morning all
I hope I have put this in the correct forum.
I have a requirement to monitor a directory on a server for files being sftp'ed in and then to sftp them of to another server. The issues I have though of are making sure the files have completely transferred onto the server before they... (6 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
HI All,
I am new to Unix shell scripts..
Could you please post the unix shell script for for the below request.,
There are two different tables(sample1, sample2) in different schemas(s_schema1, s_schema2).
Unix shell script to compare the columns of two different tables of two... (2 Replies)
Discussion started by: Rajkumar Gopal
2 Replies
LEARN ABOUT OSF1
dxmsvngetdisplayed
DXmSvnGetDisplayed(3X)DXmSvnGetDisplayed(3X)NAME
DXmSvnGetDisplayed - Retrieves (returns) displayed entry numbers and related information necessary to draw a corresponding display.
SYNOPSIS
void DXmSvnGetDisplayed(
Widget widget,
int *entries(),
XtPointer *tags(),
int *ys(),
int len );
PARAMETERS
The identifier (widget ID) of the SVN widget. A pointer to an array of integers to receive the entry numbers of the entries being dis-
played. A pointer to an array of longwords to receive the application's entry_tag value for each entry displayed. If tags are not
required, a Null pointer may be passed. A pointer to an array of longwords to receive the y coordinates for each entry displayed. If y
coordinates are not required, a Null pointer can be passed. The number of entries allocated in the provided array.
DESCRIPTION
The DXmSvnGetDisplayed routine returns information about the entries that the SVN widget is currently displaying. This information can
then be used to keep a simultaneous display up to date with the SVN widget window (in the case of a dialog box, for example, which might
contain totals for the entries being displayed).
The application is responsible for managing the memory used to return this list of entries. As such, note the following: At the minimum,
the number of entries in the array should be capable of holding at least the number of entries indicated by the value returned from the
DXmSvnGetNumDisplayed routine. If there are more entries in the array than the application will need, the SVN widget will set the value
for those extra entries to 0. If the capacity of the arrays passed is less than the number of selected entries, only the number of entries
allocated in the provided array (the value for len) will be returned.
DXmSvnGetDisplayed(3X)