Sponsored Content
Top Forums UNIX for Advanced & Expert Users Finding which file is missing Post 302208611 by chachabronson on Tuesday 24th of June 2008 11:11:47 AM
Old 06-24-2008
could you give me an example as my skills are pretty poor
have chacked man tr but am confused as to how i would use to process a file irrelevant of its case...

Plus tr only appears to accept input from stdin but in above example the inputs will be filea and fileb so am even more confused

any help
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding missing sequential file names

So, I've got a ton of files that I want to go through (ie something like 300,000), and they're all labeled sequentially. However I'm not 100% positive that they are all there. Is there any way of running through a sequence of numbers, checking if the file is in the folder, if not appending it... (2 Replies)
Discussion started by: Julolidine
2 Replies

2. Shell Programming and Scripting

Finding missing files that are named sequentially with Perl?

Hello I am new to Perl, in fact I am on chapter one of the book. :) However I am in need of a Perl Script faster than I can finish the book. Perhaps someone can help me with my immediate need while I read my book. I have a directory with hundreds of files that are all named like... (4 Replies)
Discussion started by: newftronics
4 Replies

3. Shell Programming and Scripting

finding missing items in file

I have a need to compare 2 files, then print results to file. Need to find items from file2 that are not found in file 1. thanks in advance! example: file 1: abcde=12 fffff=6 bbbb=35 file2: abcde=12 fffff=6 bbbb=35 ccccc=10 kkkkk=45 (8 Replies)
Discussion started by: discostu
8 Replies

4. Shell Programming and Scripting

Finding missing tags

I have a list containing strings. All strings should have either "smp" or "drw" else it is considered an error. I have written this code below. Any better ideas to tackle this? set fdrw = 0 set fsmp = 0 foreach f ($Lst) set fdrwtag = `echo $f | awk '/drw/'` set fsmptag = `echo $f | awk... (1 Reply)
Discussion started by: kristinu
1 Replies

5. AIX

Need help finding missing drivers

I'm in the process of migrating a system to some newer hardware (Power 5 to Power 7). I've done these migrations in the past, and have not had any problems. But this system does not see the new network controllers on the Power 7 system. The system was running AIX 5.3 before, I've upgraded it to... (5 Replies)
Discussion started by: acascianelli
5 Replies

6. SuSE

How to resolve missing missing dependencies with opensuse 11.3 and 12.3?

Hello, This is a programming question as well as a suse question, so let me know if you think I should post this in programming. I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
Discussion started by: LMHmedchem
2 Replies

7. Red Hat

Yum - resolving missing dependencies that are not missing

I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following: sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm Loaded plugins: fastestmirror Setting up Local Package... (13 Replies)
Discussion started by: gw1500se
13 Replies

8. Shell Programming and Scripting

Finding missing records and Dups

I have a fixed width file. The records looks something similar to below: Type ID SSN NAME .....AND SOME MORE FIELDS A1 1234 ..... A1 1234 ..... B1 1234 ..... M2 4567 ..... M2 4567 ..... N2 4567 ..... N2 4567 ..... A1 9999 N2 9999 Now if A1 is present then B1 has to be present.... (2 Replies)
Discussion started by: Saanvi1
2 Replies

9. Shell Programming and Scripting

Systemd errors of missing file “No such file or directory” inspite of file being present

The contents of my service file srvtemplate-data-i4-s1.conf is Description=test service for users After=network.target local-fs.target Type=forking RemainAfterExit=no PIDFile=/data/i4/srvt.pid LimitCORE=infinity EnvironmentFile=%I . . . WantedBy=multi-user.target (0 Replies)
Discussion started by: rupeshkp728
0 Replies
giiOpen(3)								GGI								giiOpen(3)

NAME
giiOpen, giiJoinInputs, giiSplitInputs, giiClose - Open, join, split and close inputs SYNOPSIS
#include <ggi/gii.h> gii_input_t giiOpen(const char * input, ...); gii_input_t giiJoinInputs(gii_input_t inp, gii_input_t inp2); int giiSplitInputs(gii_input_t inp, gii_input_t *newhand, uint32_t origin, uint32_t flags); int giiClose(gii_input_t inp); DESCRIPTION
giiOpen opens an input. This function is given the name of an input driver to load. Passing NULL here results in an auto-select mechanism, which currently means examining the contents of GII_INPUT. The optional arguments are a NULL-terminated list of pointers, which are used to give additional information to the targets. Currently only the first pointer is specified: void * argptr, a pointer to a library-specific struct. It is used to pass parameters that are not eas- ily transferable in textual form. Parameters which can be represented in text format are usually transfered in the input parameter, in the format: library_name:arguments giiJoinInputs joins two inputs into one. From a programmers' point of view, this closes both inp and inp2 and opens an new input that com- bines both inputs into one. That is, after giiJoinInputs has completed, there is no need to giiClose inp and inp2 any more. When cleaning up, you need to close the returned input instead. See the example for details. However the inputs are not actually closed or reopened internally. That is, you will not get any startup-events or similar the driver generates, though pending events of both old inputs are transferred to the newly created input. giiSplitInputs splits one of the inputs from a group of joined inputs and returns the handle. The parameter origin can be used to choose which input to detach (use GGI_EV_ORIGIN_NONE to match any input.) The detached handle is returned in newhand. Note, though, that if the detached input is the same one given in inp, then the handle returned in newhand will be that of the rest of the joined inputs instead. You can tell whether this happened by checking the return code. Events queued in the joined input for the newly split input are not trans- ferred automatically. You must drain them out yourself. The parameter flags is reserved for future use and should be set to 0. giiClose releases and destroys an open input and its associated internal control structures. This will put back input streams to their default modes, etc. Important: If you want to handle input while also using LibGGI, using LibGII functions such as giiOpen is almost certainly not what you want. Use LibGGI functions such as ggiEventRead(3) with the LibGGI visual instead. RETURN VALUE
giiOpen and giiJoinInputs return the opened or joined input, or NULL for error. The gii_input_t type is opaque to the programmer and can only be used through GII functions. giiClose returns GGI_OK (== 0) on success, otherwise an gii-error(3) code. giiSplitInputs returns 0 for normal success, or 1 if the input which was split off was the same as the one passed in inp (in which case, newhand may contain a handle to a joined set of visuals.) Otherwise, it returns an gii-error(3) code. EXAMPLES
GII input management: gii_input_t inp, inp2, inp3; /* Initialize the GII library. This must be called before any other * GII function. */ if (giiInit() != 0) exit(1); /* Open the nulldevice for testing ... */ if ((inp=giiOpen("input-null",NULL)) == NULL) { giiExit(); exit(1); } /* Open stdin for testing ... */ if ((inp2=giiOpen("input-stdin",NULL)) == NULL) { giiExit(); exit(1); } /* Open evdev for testing ... */ if ((inp3=giiOpen("input-linux-evdev",NULL)) == NULL) { giiExit(); exit(1); } /* Now join them. Note the usage of _i_n_p_=_giiJoin(inp,inp2); * This is the recommended way to do this. */ inp=giiJoinInputs(inp,inp2); /* Note that this mends inp2 into inp. That is you may not call giiClose(inp2) - this happens together with giiClose(inp) ! */ /* Join another */ inp=giiJoinInputs(inp,inp3); /* ... do the real work here ... */ /* Split one of them back out of the join. */ res = ggiSplitInputs(inp, &inp2, GII_EV_ORIGIN_NONE, 0); if (res == 1) { gii_input_t tmp; tmp = imp2; imp2 = imp1; imp1 = tmp; } else if (res < 0) fprintf(stderr, "Failed to split inputs "); /* Close the single input */ giiClose(inp2); /* Close the joined input */ giiClose(inp); /* Now close down LibGII. */ giiExit(); SEE ALSO
giiInit(3) libgii-1.0.x 2006-12-30 giiOpen(3)
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy