Sponsored Content
Top Forums Shell Programming and Scripting Compare list [ names and size files ] Post 302501617 by Aswex on Friday 4th of March 2011 04:04:37 AM
Old 03-04-2011
Compare list [ names and size files ]

Hello,

I've downloaded a huge amont of files

I've got a list of files from a remote server.

Code:
-rw-r--r-- 1 str661 strem 453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc
-rw-r--r-- 1 str661 strem  17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc
-rw-r--r-- 1 str661 strem 453465248 Dec 16 18:01 SATRYS2V1_20021225_sali_bias.nc
-rw-r--r-- 1 str661 strem 453465260 Dec 16 18:01 SATRYS2V1_20021225_temp_bias.nc

I've got also the same list

Code:
-rw-r--r--   1 mar_stl marsstr  453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc
-rw-r--r--   1 mar_stl marsstr  17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc
-rw-r--r--   1 mar_stl marsstr  453465248 Dec 16 18:01 SATRYS2V1_20021225_sali_bias.nc
-rw-r--r--   1 mar_stl marsstr  453465260 Dec 16 18:01 SATRYS2V1_20021225_temp_bias.nc

I need help to found a way to compare name files and size and see if there is any difference. The idea is to be sure the size of each file are exacly the same.

Thanks for your help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare 2 list and delete certain names

Hi, I currently have a script that takes a list of names and compares it with another list and appends non-duplicate names. I want to modify my script such that it will look at a list of names and for every name preceded by the tag "<delete>" (without the quotes) it checks the other list for... (12 Replies)
Discussion started by: eltinator
12 Replies

2. Shell Programming and Scripting

how to copy files followed by list of names of all the files in /etc?

....... (2 Replies)
Discussion started by: pcbuilder
2 Replies

3. UNIX for Dummies Questions & Answers

how to compare names of files?

hi, can somebody tell me how to compare names of files? the situation is I have 2 files file1 and file2 and I want to figure out which file has the biggest ending, in this case file2 is. thank you (3 Replies)
Discussion started by: s3270226
3 Replies

4. Shell Programming and Scripting

compare between files size

Hello i have file A created yesterday and file B created today thanks to help create script compare between 2 files according to size so if file B is less than 10% of file A i should have echo message with warning also check if file B exist or not. this should be run in loop for list of... (6 Replies)
Discussion started by: mogabr
6 Replies

5. Shell Programming and Scripting

Check for particular files and compare the file names

Hi, Below are the 2 files in directory /tmp: masterCSF242323.img indexCSF242323.img 1) I want to compare if both the number (242323) are same in both the files. If they are same print - Files matching, else print files do not match. 2) Also if only index file is present in that... (7 Replies)
Discussion started by: apatil65
7 Replies

6. Shell Programming and Scripting

Finding size of files with spaces in their file names

I am running a UNIX script to get unused files and their sizes from the server. The issue is arising due to the spaces present in the filename/folder names.Due to this the du -k command doesn't work properly.But I need to calculate the size of all files including the ones which have spaces in them.... (4 Replies)
Discussion started by: INNSAV1
4 Replies

7. Shell Programming and Scripting

Compare two files and get only missing names

I need to compare two files (oldfile1 & newfile). Need to ignore the values which are present in both files. At the same time, i need to get only records in new file. Tried using Join -v1 -v2 oldfile1 newfile (suspect it has not worked as expected). could anyone of you please help me here. (5 Replies)
Discussion started by: Selva_2507
5 Replies

8. Shell Programming and Scripting

Compare two files containing package names and version number

I have 2 files each containing a list of same fedora packages but with different version number. I want to compare the 2 files and remove the lines containing a newer or older version number (1 Reply)
Discussion started by: asya18
1 Replies

9. UNIX for Dummies Questions & Answers

How to list the names of the files from all the subdirectories?

Hi, I'm currently trying to print the names of all the .txt files in the subdirectories that contain the string I'm searching. I tried with this code, but it seems that it searches for the names that matches the string instead of searching for the string in the individual files and printing the... (2 Replies)
Discussion started by: nuclearpenguin
2 Replies

10. Shell Programming and Scripting

Compare files with different names in different directories

Hi, I have a requirement to compare files in different directories with different names. The files have a datestamp in their name (It might not be a sequential datetimestamp). This is for Redhat Linux. I have more than 5 directories and more than 10 file in each directory to be compared. ... (4 Replies)
Discussion started by: GosarJunk
4 Replies
imua2(1)						      General Commands Manual							  imua2(1)

Name
       imua2 - Find USNO-A2.0 stars in FITS or IRAF image files

Synopsis
       imua2 [options] FITS or IRAF file(s)

Description
       Search  USNO-A2.0 Catalog within the area described by the world coordinate system in an image header.  This is a link to imcat rather than
       a separate executable.

Options
       -b [<RA> <Dec>]
	      Output in B1950, optional new image center in B1950 (FK4) RA and Dec

       -h     Print heading, else do not

       -j [<RA> <Dec>]
	      Output in J2000, optional new image center in J2000 (FK5) RA and Dec

       -m [<bright magnitude>] <faint magnitude>
	      Limiting catalog magnitude(s) (default none, bright -2 if only faint is given)

       -n <num>
	      Number of brightest stars to print

       -p <scale>
	      Initial plate scale in arcsec per pixel (default 0)

       -s     Sort by RA instead of flux

       -t     Tab table to standard output as well as file

       -u     USNO catalog single plate number to accept

       -v     Verbose listing of processing intermediate results

       -w     Write tab table output file imagename.cat -z Use AIPS classic projections instead of WCSLIB; use CD matrix or CDELT instead of poly-
	      nomial solution.

See Also
       imgsc(),imuac(),imusac(),scat()

Author
       Doug Mink, SAO (dmink@cfa.harvard.edu)

Options
       -b [<RA> <Dec>]
	      Output B1950 (FK4) coordinates (optional center)

       -u <plate>
	      Accept only stars from this plate (default all)

       -h     Print heading, else do not

       -j [<RA> <Dec>]
	      Output J2000 (FK5) coordinates (optional center)

       -m [<bright magnitude>] <faint magnitude>
	      Limiting catalog magnitude(s) (default none, bright -2 if only faint is given)

       -n <num>
	      Number of brightest stars to print

       -p <scale>
	      Plate scale in arcsec per pixel (default 0)

       -s     Sort by RA instead of flux

       -t     Tab table to standard output as well as file

       -u <plate>
	      Accept only stars from thsi plate (default all)

       -v     Verbose listing of processing intermediate results

       -w     Write tab table output file imagename.uac

See Also
       imcat(),imgsc(),imusa2(),scat()

Web Page
       http://tdc-www.harvard.edu/software/wcstools/imcat/imua2.html

Author
       Doug Mink, SAO (dmink@cfa.harvard.edu)

14 April 1998								WCS								  imua2(1)
All times are GMT -4. The time now is 03:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy