Sponsored Content
Top Forums Shell Programming and Scripting to write a script to compare the file size in the current directory and previous dir Post 302285854 by tweety on Monday 9th of February 2009 10:48:40 PM
Old 02-09-2009
hi,

the file names will be same in both the dir, but with different dates. How can i compare the file size of all the files in tis.

can you please help me in this?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check File Exists and compare to previous day file script

We have data files that are ftp'd every morning to a SUN server. The file names are exactly the same except for that each has the date included in its name. I have to write script to do 2 things: STEP 1) Verify that the file arrived in morning. STEP 2) Compare the file size of the current... (3 Replies)
Discussion started by: rbknisely
3 Replies

2. Shell Programming and Scripting

How to compare size of two file which is in one directory

I have two file in a Directory.I want a script which will compare the Size of Two file. Can Anyone Help me on this: linasplg11:/opt/dataout/kk/linasplg11 # cat size -rwxrwxrwx 1 root root 16658 Jan 8 13:58 lina_IP_SIP_1231325621210.xml -rwxr-xr-x 1 root root 16672 Jan 8 14:30... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

3. Shell Programming and Scripting

Find which dir is big size in a directory

Hi all, Could you please tellme the commadn which sorts the list of directories in a parent dir by their size. Thanks. (2 Replies)
Discussion started by: firestar
2 Replies

4. UNIX for Dummies Questions & Answers

How to list all files in dir and sub-dir's recursively along with file size?

I am very new to unix as well as shell scripting. I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies

5. Shell Programming and Scripting

AWK Compare previous value with current.

Hi, I have one small doubt how to go ahead and process the below requirement. File Content 1,abc,10 2,xyz,11 3,pqr,12 4,pqr,13 5,pqr,14 Output file expected: 1,mnq,1 1,ddd,2 1,qqq,3 1,sss,4 1,ddd,5 1,eee,6 1,fff,7 1,ddr,8 1,rrd,9 (3 Replies)
Discussion started by: dikesm
3 Replies

6. Shell Programming and Scripting

Compare Field in Current Line with Field in Previous

Hi Guys I have the following file Essentially, I am trying to find the right awk/sed syntax in order to produce the following 3 distinct files from the file above: Basically, I want to print the lines of the file as long as the second field of the current line is equal to the... (9 Replies)
Discussion started by: moutaye
9 Replies

7. Shell Programming and Scripting

How to compare current record,with next and previous record in awk without using array?

Hi! all can any one tell me how to compare current record of column with next and previous record in awk without using array my case is like this input.txt 0 32 1 26 2 27 3 34 4 26 5 25 6 24 9 23 0 32 1 28 2 15 3 26 4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies

8. UNIX for Dummies Questions & Answers

Viewing file size in current directory

What is the command line for viewing the sizes(lines and bytes)of all the files in your present working directory? Is it >ls -la (2 Replies)
Discussion started by: Payton2704
2 Replies

9. Shell Programming and Scripting

How to compare the current result with previous line result.?

Hi Gurus, I have requirement to compare current result with previous reuslt. The sample case is below. 1 job1 1 1 job2 2 1 job3 3 2 job_a1 1 2 job_a2 2 2 job_a3 3 3 job_b1 1 3 job_b2 2 for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies

10. Shell Programming and Scripting

How to compare previous and current item in for loop in bash?

Hey, I am trying to compare formated login and logout dates from one user at a host which I have stored in a tmp directory in order to find out the total login time. I need to compare them in order to find overlapping intervals. At first I tried to store each log in and logo date in an array... (3 Replies)
Discussion started by: Mumu123
3 Replies
tis(3)							     Library Functions Manual							    tis(3)

NAME
tis, tis_intro - Introduction to Thread-Independent Services (tis) DESCRIPTION
Thread-independent services (tis) routines compose a Compaq-proprietary interface to the DECthreads multitasking library. The tis inter- face provides services that assist with the development of thread-safe libraries. Thread synchronization can involve significant run-time cost, which is undesirable in a nonthreaded environment. In the nonthreaded envi- ronment, the tis interface enables you to build thread-safe libraries that are efficient, yet provide the necessary synchronization when called from a threaded environment. When threads are not active within the process, tis routines execute only the minimum steps necessary: code running in a nonthreaded envi- ronment is not burdened by the run-time synchronization that is necessary when the same code is run in a threaded environment. When threads are active, tis routines provide the necessary thread-safe synchronization. The tis objects created using this interface are fully interchangeable with DECthreads Pthreads (POSIX 1003.1c) objects. So, a mutex can be created by using static initialization (or using tis_mutex_init(3)) and can be locked, the DECthreads core library (libpthread.so) sub- sequently activated, and the mutex unlocked. Keys created by tis_key_create(3) are valid when a threaded run-time environment is loaded. Note that errno is NOT used by the tis routines. To indicate errors, the tis routines return integer values indicating the type of error. In a nonthreaded environment, condition variables should not be used to guard operations (for example, with tis_cond_wait(3)). In a threaded environment, the guidelines for using the DECthreads Pthread routines also pertain to the use of the corresponding tis routine. The tis routines can be classified into the following associated groups: General routines Thread cancellation routines Thread-specific data key routines Mutex routines Condition variable routines Read-write lock routines General Routines Obtains a value representing a desired expiration time. Calls a one-time initialization routine that can be executed. Obtains the identi- fier of the calling thread. Thread Cancellation Routines Changes the calling thread's cancelability state. Creates a cancellation point in the calling thread. Thread-Specific Data Key Routines Obtains the data associated with the specified thread-specific data key. Generates a unique thread-specific data key. Deletes a thread- specific data key. Sets the value associated with the specified thread-specific key. Mutex Routines Locks the DECthreads global mutex. Destroys the specified tis mutex object. Initializes a tis mutex object. Locks the specified tis mutex if not already locked. Tries to lock the specified tis mutex. Unlocks the specified tis mutex. Unlocks the DECthreads global mutex. Condition Variable Routines Wakes all threads waiting on the specified condition variable. Destroys the specified condition variable object. Initializes a condition variable object. Wakes at least one thread that is waiting on the specified condition variable. Causes the calling thread to wait for the specified condition variable to be signaled or broadcast, such that it will awake after a specified period of time. Causes the calling thread to wait for the specified condition variable to be signaled or broadcast. Read-Write Lock Routines Acquires the specified read-write lock for read access. Attempts to acquire the specified read-write lock for read access; returns immedi- ately if already locked. Unlocks the specified read-write lock already acquired for read access. Destroys the specified read-write lock object. Initializes a read-write lock object. Acquires the specified read-write lock for write access. Attempts to acquire the specified read-write lock for write access; returns immediately if already locked. Unlocks the specified read-write lock already acquired for write access. delim off delim off tis(3)
All times are GMT -4. The time now is 02:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy