Sponsored Content
Top Forums UNIX for Advanced & Expert Users Finding which file is missing Post 302208597 by chachabronson on Tuesday 24th of June 2008 10:30:25 AM
Old 06-24-2008
I was hoping someone could expand on this for me as it could be useful.
How would you do teh below but for different file names.

i.e. say on one day FILEA.TXT is called filea.txt, or FiLeA.tXT or even fIlEa.TxT. Say the case case changes but not the file name. so if the file being checked was always the same name but differed only it uppercase or lowercase how could you do a seach so file would be picked up irrespective of the case
 

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
conv(3) 						     Library Functions Manual							   conv(3)

Name
       toupper, tolower, _toupper, _tolower, toascii - translate characters

Syntax
       #include <ctype.h>

       int toupper(c)
       int c;

       int tolower(c)
       int c;

       int _toupper(c)
       int c;

       int _tolower(c)
       int c;

       int toascii(c)
       int c;

Description
       The  functions  and  have  as their domain the range of the function. If the argument to represents a lowercase letter, the output from the
       function is the corresponding uppercase letter. If the argument to represents an uppercase letter, the result is the  corresponding  lower-
       case letter.

       The  case  of  c depends on the definition of the character in the language database. Because the case of a character can vary between lan-
       guage databases, the case of c depends on what language database is in use. Specifically, the case of arguments depends	on  what  property
       tables  are  associated the LC_CTYPE category.  Property tables are associated with the LC_CTYPE category by a successful call to the func-
       tion that includes the LC_CTYPE category. If no successful call to define LC_CTYPE has occurred or if the  character  case  information	is
       unavailable for the language in use, the rules of the ASCII coded character set determine the case of arguments.

       If  the	argument  to the function does not have the uppercase attribute, returns the argument unchanged.  Likewise, if the argument to the
       function does not have the lowercase attribute, returns it unchanged.

       The macros and have the same affect as and The difference is that the argument to the macros must be an ASCII character (that is, a charac-
       ter in the domain -1 to 127) and the argument must have the appropriate case.  Arguments to must have the uppercase attribute and arguments
       to must the lowercase attribute. The result of supplying arguments to these macros that are outside the domain or do not have the appropri-
       ate case is undefined.  These macros operate faster than the and functions.

       The  macro  converts its argument to the ASCII character set. The macro converts its argument by truncating the numerical representation of
       the argument so that it is between -1 and 127. You can use this macro when you move an application to a system other than an ULTRIX system.

   International Environment
       LC_CTYPE       If this environment variable is set and valid, uses the international language database named in the definition to determine
		      character classification rules.

See Also
       ctype(3int), setlocale(3), getc(3)

																	   conv(3)
All times are GMT -4. The time now is 06:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy