Sponsored Content
Full Discussion: Report missing files
Top Forums Shell Programming and Scripting Report missing files Post 302507209 by mirni on Wednesday 23rd of March 2011 05:47:19 AM
Old 03-23-2011
You can wrap it in a for loop:
Code:
for hr in `seq 0 23` ; do 
  fname=data_file.$DATE_YYMMDD${hr}.Z
  [[ ! -f "$fname" ]] && echo Missing $fname
done


Last edited by mirni; 03-23-2011 at 07:05 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

files missing

a few of some live payroll files have been deleted / missing ... i've restored last nites backup ... what could be the possibilities of this strange occurance ... users have menus to work on and use these live files ... we run an aix box with a ksh shell. Where do I start ?? Thanks (4 Replies)
Discussion started by: cubicle^dweller
4 Replies

2. UNIX for Dummies Questions & Answers

Missing Library Files

Can anyone send me copies via email or allow me to download the following files for Unix 4.0? libmsfs.so libfilsys.so These files were lost due to corruption. All the other library files are fine. I have the files on tape, but without libmsfs.so I am unable to open vrestore. I am open... (5 Replies)
Discussion started by: jays337
5 Replies

3. Shell Programming and Scripting

how to check missing files?

I have 50 files in this directory (/home/unixnewbie/wklyfiles) namely: statistics.1 statistics.2 statistics.3 statistics.4 statistics.5 statistics.6 statistics.7 statistics.8 statistics.9 statistics.10 .... statistics.20 .... statistics.50 How can i determine if ever there will be... (7 Replies)
Discussion started by: gholdbhurg
7 Replies

4. AIX

how to find missing files

Hi on friday one user from peoplesoft lost his file. mean he don't know he saved it or removed it. but, he need the file and it is most valuable. so i searched the file in the server, i got the some with same name on /peoplesoft/..../print directory. is these two are the same one or... (1 Reply)
Discussion started by: honeym210
1 Replies

5. Shell Programming and Scripting

echo missing files.

Hi.... I have two directories, A and B. Files are rcp`d from A to B, but some of the files are missing. files in A are in sequence from "2008111406796.zteasn.norm.gz" to "2008111407415.zteasn.norm.gz" In B directory 27 files are missing, i want to echo those files which are missing, so that... (1 Reply)
Discussion started by: tushar_tus
1 Replies

6. Shell Programming and Scripting

Check for files and log report if missing

Hi, I need a shell program that will prompt the user to input a dept name to the script. The script should then check a specific directory called ‘report' in the home directory of each member of that dept. If the report directory does not exist, or there are no contents in the directory,... (2 Replies)
Discussion started by: johnnyvlme
2 Replies

7. Shell Programming and Scripting

Compare 2 folders to find several missing files among huge amounts of files.

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)
Discussion started by: jiapei100
1 Replies

8. Shell Programming and Scripting

How to take the missing files

Hi all , am using unix ksh I have a lots of files in /prb directory in the format as .. .. .. .. MMRR0607.DAT_2012 MMRR0707.DAT_2012 MMRR0907.DAT_2012 MMRR1107.DAT_2012 ... .. MMRR3107.DAT_2012 MMRR0208.DAT_2012 .. I need the output as Missing files are:- MMRR0807.DAT_2012 (note... (4 Replies)
Discussion started by: Venkatesh1
4 Replies

9. Shell Programming and Scripting

How to takes missing files

Hi Am using unix aix I have a group of files in File1 For ex:- Vi file1 A0405 A0605 A0805 When i tried using awk command am getting an error as No space a=`awk 'NF < 1 {next;} p && p != $1 { for( i = p; i < $1; i++ )print i; } {p = $1 + 1 }' file2` Error message:- + + awk NF <... (7 Replies)
Discussion started by: Venkatesh1
7 Replies

10. Shell Programming and Scripting

Get the missing dependency from two files

#cat hwlock-full.dep libx11-6 >= 1.4.4 libz1 >= 1.2.7 libtinfo5 >= 5.9 libxcb1 >= 1.8.1 numactl >= 2.0.8+rc4 libpixman-1-0 >= 0.29.2 libxml2 >= 2.7.8 libxext6 >= 1.3.1 libxrender1 >= 0.9.7 libfreetype6 >= 2.4.9 libxcb-render0 >= 1.8.1 libcairo2 >= 1.12.14 libc6 >= 2.15 libxcb-shm0... (7 Replies)
Discussion started by: yanglei_fage
7 Replies
clm close(1)							  USER COMMANDS 						      clm close(1)

  NAME
      clm close - Fetch connected components from graphs or subgraphs

      clmclose	is  not  in  actual  fact  a program. This manual page documents the behaviour and options of the clm program when invoked in mode
      close. The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.

  SYNOPSIS
      clm close -imx <fname> [options]

      clm close -imx fname (specify matrix input) -abc fname (specify label input) -dom fname (input domain/cluster file) [-o fname (output file)]
      [--is-undirected	(trust	input  graph  to  be  undirected)] [--write-count (output component count)] [--write-sizes (output component sizes
      (default))] [--write-cc (output components as clustering)] [--write-block (output graph restricted to -dom argument)] [--write-blockc  (out-
      put  graph  complement  of  -dom	argument)]  [-cc-bound	num  (select components with size at least num)] [-tf spec (apply tf-spec to input
      matrix)] [-h (print synopsis, exit)] [--apropos (print synopsis, exit)] [--version (print version, exit)]

  DESCRIPTION
      Use clm close to fetch the connected components from a graph. Different output modes are supported (see below). In matrix mode  (i.e.  using
      the  -imx option) the output returned with --write-cc can be used in conjunction with mcxsubs to retrieve individual subgraphs corresponding
      to connected components.

  OPTIONS
      -abc <fname> (label input)
	The file name for input that is in label format.

      -imx <fname> (input matrix)
	The file name for input that is in mcl native matrix format.

      -o fname (output file)
	Specify the file where output is sent to. The default is STDOUT.

      -dom fname (input domain/cluster file)
	If this option is used, clm close will, as a first step, for each of the domains in file fname retrieve the associated subgraph  from  the
	input graph. These are then further decomposed into connected components, and the program will process these in the normal manner.

      --write-count (output component count)
      --write-sizes (output component sizes (default))
      --write-cc (output components as clustering)
      --write-block (output graph restricted to -dom argument)
      --write-blockc (output graph complement of -dom argument)
	The  default  behaviour  is  currently to output the sizes of the connected components. It is also possible to simply output the number of
	components with --write-count or to write the components as a clustering in mcl format with -write-cc. Even more options exist: it is pos-
	sible to output the restriction of the input graph to a domain, or to output the complement of this restriction.

      --is-undirected (omit graph undirected check)
	With  this option the transformation to make sure that the input is undirected is omitted. This will be slightly faster. Using this option
	while the input is directed may lead to erronenous results.

      -cc-bound num (select components with size at least num)
	Transform the input matrix values according to the syntax described in mcxio(5).

  AUTHOR
      Stijn van Dongen.

  SEE ALSO
      mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.

  clm close 12-068						      8 Mar 2012							clm close(1)
All times are GMT -4. The time now is 09:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy