Sponsored Content
Top Forums Shell Programming and Scripting Find Large Files Recursively From Specific Directory Post 302971910 by aimy on Wednesday 27th of April 2016 12:15:52 AM
Old 04-27-2016
Thanks Don.

This is some of the output:
Code:
-rw-r--r--   1 ftphsbb    ftpuser         89 Apr 24 21:40 CASS_voice_NON_IMS_20160424_61486.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser         89 Apr 25 23:20 CASS_voice_NON_IMS_20160425_61701.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser         89 Apr 26 05:20 CASS_voice_NON_IMS_20160426_61746.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser        127 Nov 11  2014 CASS_voice_NON_IMS_20141022_59770.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser        174 Nov 11  2014 CASS_voice_NON_IMS_20141021_59453.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser        200 Nov 11  2014 CASS_voice_NON_IMS_20141022_59764.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser        221 Dec  5  2013 CASS_voice_NON_IMS_20131205_02067.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21832 Sep 15  2015 CASS_voice_NON_IMS_20150915_16466.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21833 Dec 15  2014 CASS_voice_NON_IMS_20141215_68321.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21834 Jun 17  2014 CASS_voice_NON_IMS_20140617_41284.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21834 Nov 11  2014 CASS_voice_NON_IMS_20141001_57072.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21836 Nov 25  2013 CASS_voice_NON_IMS_20131125_99511.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21860 Nov 27  2013 CASS_voice_NON_IMS_20131127_00075.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      21861 Jul 28  2014 CASS_voice_NON_IMS_20140728_47098.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37255 Jul  6  2015 CASS_voice_NON_IMS_20150706_01203.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37258 May 29  2015 CASS_voice_NON_IMS_20150529_94299.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37260 Nov 11  2014 CASS_voice_NON_IMS_20141021_59484.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37264 Nov  6 15:00 CASS_voice_NON_IMS_20151106_27007.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37272 Sep 15  2015 CASS_voice_NON_IMS_20150915_16414.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37279 Jan 31  2014 CASS_voice_NON_IMS_20140131_16810.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37280 Dec  8 10:00 CASS_voice_NON_IMS_20151208_33705.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37280 Feb 26  2014 CASS_voice_NON_IMS_20140226_23747.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      37281 Apr 12  2014 CASS_voice_NON_IMS_20140412_31888.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      38657 Feb 15 15:20 CASS_voice_NON_IMS_20160215_47855.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      38657 Mar  3 14:40 CASS_voice_NON_IMS_20160303_51340.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      38658 Apr  4  2014 CASS_voice_NON_IMS_20140404_30777.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      38658 Nov 23 11:40 CASS_voice_NON_IMS_20151123_30547.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      38862 Apr 14  2014 CASS_voice_NON_IMS_20140414_32198.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      38862 Jun  1  2015 CASS_voice_NON_IMS_20150601_94805.cdr.ext
-rw-r--r--   1 ftphsbb    ftpuser      39020 Sep 12  2014 CASS_voice_NON_IMS_20140912_54032.cdr.ext

All of them are under /EDWH-DMT03/stgdata/HSBB/USAGE/ directory.

Anyway, your modified script give neat output indeed.

Thank you very much.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Recursively copy only specific files from a directory tree

Hi I am a shell-script newbie and am looking to synchronize certain files in two directory structures. Both these directory-trees are in CVS and so I dont want the CVS directory to be copied over. I want only .sh and .pl files in each subdirectory under these directory trees to be... (3 Replies)
Discussion started by: sharpsharkrocks
3 Replies

2. Shell Programming and Scripting

How to find a specific files in a many directory

Dear All, Appreciate some help here. I have a log of report. It located in several directory as below: Directory: mysscpr1 mysscpr2 mysscpr3 my_scnpr4 In the directory it contain hundred of files. i need to find a specific files that contain 'invc2345' in the directory. How... (7 Replies)
Discussion started by: selamba_warrior
7 Replies

3. Shell Programming and Scripting

delete files recursively in the specified directory

I have to write a shell script which can delete all the files and directories recursively inside the specified directory but should not delete the specified directory. Please some body help me in writing the script. (3 Replies)
Discussion started by: deepthi.s
3 Replies

4. Shell Programming and Scripting

Recursively move directories along with files/specific files

I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find ) The directory structure looks like :- /tmp a.log b.log c.log /abcd d.log e.log When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies

5. Shell Programming and Scripting

Using find in a directory containing large number of files

Hi All, I have searched this forum for related posts but could not find one that fits mine. I have a shell script which removes all the XML tags including the text inside the tags from some 4 million XML files. The shell script looks like this (MODIFIED): find . "*.xml" -print | while read... (6 Replies)
Discussion started by: shoaibjameel123
6 Replies

6. Shell Programming and Scripting

Need to find recursively all shell script in the /xyz directory

Pls. advise how to find or used grep recursively all shell script files. Some files doesnt have a .sh or .ksh extension name. find / -name "*" |xargs grep bin |grep sh ?? TIA (1 Reply)
Discussion started by: budz26
1 Replies

7. Shell Programming and Scripting

Find all the files under a specific directory and zip them into a single file.

Hi, Is there a way to find all the files from a specific location and then zip them into a single file, even if they are in multiple directories? (3 Replies)
Discussion started by: rudoraj
3 Replies

8. Shell Programming and Scripting

Find specific files only in current directory...not sub directories AIX

Hi, I have to find specific files only in the current directory...not in the sub directories. But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help.. I am using the below command. And i am... (2 Replies)
Discussion started by: aakishore
2 Replies

9. Shell Programming and Scripting

Copy Specific Files Recursively

Is it possible to only copy selected files+its directories when you are copying recursively? find /OriginalFolder/* -type -d \{ -mtime 1 -o -mtime 2 \ } -exec cp -R {} /CopyTo/'hostname'__CopyTo/ \; -print From the above line, I want to only copy *txt and *ini files from /OriginalFolder/* ... (4 Replies)
Discussion started by: apacheLinux
4 Replies

10. Shell Programming and Scripting

Copy files recursively to one single directory

I need to copy a complete directory structure into a new location. But I want to have all files copied into one directory and leave out the directory structure. So all files must be placed in one directory. (4 Replies)
Discussion started by: ReneVL
4 Replies
__gnu_cxx::subtractive_rng(3)				     Library Functions Manual				     __gnu_cxx::subtractive_rng(3)

NAME
__gnu_cxx::subtractive_rng - SYNOPSIS
Inherits std::unary_function< _Arg, _Result >. Public Types typedef _Arg argument_type typedef _Result result_type Public Member Functions subtractive_rng (unsigned int __seed) subtractive_rng () void _M_initialize (unsigned int __seed) unsigned int operator() (unsigned int __limit) Detailed Description The subtractive_rng class is documented on SGI's site. Note that this code assumes that int is 32 bits. Definition at line 352 of file ext/functional. Member Typedef Documentation template<typename _Arg, typename _Result> typedef _Arg std::unary_function< _Arg, _Result >::argument_type [inherited] argument_type is the type of the argument Definition at line 104 of file stl_function.h. template<typename _Arg, typename _Result> typedef _Result std::unary_function< _Arg, _Result >::result_type [inherited] result_type is the return type Definition at line 107 of file stl_function.h. Constructor &; Destructor Documentation __gnu_cxx::subtractive_rng::subtractive_rng (unsigned int__seed) [inline] Ctor allowing you to initialize the seed. Definition at line 394 of file ext/functional. __gnu_cxx::subtractive_rng::subtractive_rng () [inline] Default ctor; initializes its state with some number you don't see. Definition at line 398 of file ext/functional. Member Function Documentation unsigned int __gnu_cxx::subtractive_rng::operator() (unsigned int__limit) [inline] Returns a number less than the argument. Definition at line 363 of file ext/functional. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 __gnu_cxx::subtractive_rng(3)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy