Sponsored Content
Top Forums Shell Programming and Scripting Problems with find's -newer Flag Post 302330263 by droppedonjapan on Tuesday 30th of June 2009 04:25:57 PM
Old 06-30-2009
Yeah, I realized that I had put in the wrong code when I initially posted this. I've tried this exact code and this is the output:

Code:
/home/webreports/data/65202

Another ls of the directory with the exact code you supplied:

Code:
total 17980
-rw-rw-rw-  1 cfmc cfmc 1348372 31-01-2002 17:59:30 fd9006y.db
-rw-rw-rw-  1 cfmc cfmc 3620864 31-01-2002 17:59:30 fd9006y.fnx
-rw-rw-rw-  1 cfmc cfmc 9650176 31-01-2002 17:59:30 fd9006y.fny
-rw-rw-rw-  1 cfmc cfmc   42360 31-01-2002 17:59:30 fd9006y.fon
-rw-rw-rw-  1 cfmc cfmc 1197688 31-01-2002 17:59:30 fd9006y.qff
-rw-rw-rw-  1 cfmc cfmc   60144 31-01-2002 17:59:30 fd9006y.quo
-rw-r--r--  1 cfmc cfmc  508000 31-01-2002 17:59:30 fd9006y.tr
-rw-rw-rw-  1 cfmc cfmc  167928 30-06-2009 15:13:48 output1.rfl
-rw-rw-rw-  1 cfmc cfmc    7469 30-06-2009 15:13:48 output1.rft
-rw-rw-rw-  1 cfmc cfmc  427232 30-06-2009 15:13:48 output1.sps
-rwxrwxr-x  1 cfmc cfmc     820 31-01-2002 17:59:30 output.spx
-rwxrwxr-x  1 cfmc cfmc     820 31-01-2002 17:59:30 output.spx.backup
-rwxrwxr-x  1 cfmc cfmc     820 31-01-2002 17:59:30 output.spx.backup1
-rwxrwxr-x  1 cfmc cfmc     820 31-01-2002 17:59:30 output.spx.backup2
-rw-rw-rw-  1 cfmc cfmc  427232 31-01-2002 17:59:30 putput1.sps
-rw-rw-rw-  1 cfmc cfmc  427232 31-01-2002 17:59:30 qutput1.sps
-rw-rw-rw-  1 cfmc cfmc       0 31-01-2002 17:59:30 report_start
-rw-rw-rw-  1 cfmc cfmc  427232 31-01-2002 17:59:30 rutput1.sps

Exact code that I used:

Code:
touch report_start #Marker before files are created

touch -t 200201311759.30 *

yes | runjob $repname > /dev/null

pwd

find /home/webreports/data/$tag -newer report_start -print # | zip $study -@  #Zip the files that are newer than report_start

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find files newer than...

Is there a way to use the find command to locate files newer than a specific date? Thanks! --Alex (4 Replies)
Discussion started by: vertigo23
4 Replies

2. Shell Programming and Scripting

Problem with find ! -newer

Hi, I would like to find if a file called test.log is older than 10 min. So i wrote : #!/usr/bin/ksh FICLOG="/home/uuu/result_test.log" FIC="/home/uuu/test.log" touch -t `perl -e 'use POSIX qw(strftime); printf("%s\n",strftime("%m%d%H%M",localtime(time-3600*0.17)));'`... (3 Replies)
Discussion started by: dbfree
3 Replies

3. UNIX for Advanced & Expert Users

find -cmin or fin -newer

I am running SUSE/8 and SUSE/9 on a high end server (4 CPU, 8G RAM etc) I have a huge directory structure with over 4million files in it. I have find the files that are modified (created, modified, renamed etc etc) in the last 10 minutes periodically. I have tried "find -cmin -10" and "find... (2 Replies)
Discussion started by: xxxyyyy
2 Replies

4. Shell Programming and Scripting

find and size flag

Hello everyone, I would like to filter and search for files in my curr dir where the blocks used by those files are over a certain number (i.e. 30), when I try this command find . -name "c*" -size +30 -exec ls -ls {} \; I get a list of files, the first column is the block size, right? ... (1 Reply)
Discussion started by: gio001
1 Replies

5. Shell Programming and Scripting

How to script to find the newer date in a text file?

Hi, I have a text file, foo.txt, it looks something like below. In the file there is a line that gives the date in the form of: Mon Jun 15 11:09:31 2008. I need to find which date is the newest and then store certain details of that list data to another file. So, in this sample text file, I... (6 Replies)
Discussion started by: boolean2222
6 Replies

6. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

7. Shell Programming and Scripting

how to find a file then overwrite with a newer version

This should be a simple script, but can't find one with google search. I just need to find the file that is in many directories, then overwrite that file with a newer version i.e. find file.jar then overwrite with /root/file.jar All I get in searches is substitute text with new test inside... (1 Reply)
Discussion started by: haircat
1 Replies

8. UNIX for Dummies Questions & Answers

Find files newer than x days

We had an arrant rsync run and started copying over new files from one system to another. Although this is what we will want to do at some point, for now, we want to maintain the system as it was a few days ago. I am looking for a script that will find files that are newer than x days. ... (5 Replies)
Discussion started by: Leyva62
5 Replies

9. Shell Programming and Scripting

find command not searching path when -newer specified

When this command is issued from a directory other than where the file is located it works fine: find /db2/D01/log_archive/ -name "S0002166.LOG" -type f /db2/D01/log_archive/db2d01/D01/NODE0000/C0000000/S0002166.LOG When I change -name to -newer, it doesn't work. Find only searches the current... (5 Replies)
Discussion started by: fletchdb2
5 Replies

10. Shell Programming and Scripting

Flag Programs that have coding problems

I create a shell script program (AIX OS) that flags any logs that certain keywords such as memsize, sasfoundation, and real time. My program isn't working maybe because my syntax logistic isn't correct. Here are examples of the logs: file1.log.02897 file2.log.02896 filez.log.02899 ... (5 Replies)
Discussion started by: dellanicholson
5 Replies
SPEEXDEC(1)							   User Commands						       SPEEXDEC(1)

NAME
speexdec - The reference implementation speex decoder. SYNOPSIS
speexdec [options] input_file.spx [output_file] DESCRIPTION
Decodes a Speex file and produce a WAV file or raw file input_file can be: filename.spx regular Speex file - stdin output_file can be: filename.wav Wav file filename.* Raw PCM file (any extension other that .wav) - stdout (nothing) Will be played to soundcard OPTIONS
--enh Enable perceptual enhancement (default) --no-enh Disable perceptual enhancement --force-nb Force decoding in narrowband --force-wb Force decoding in wideband --force-uwb Force decoding in ultra-wideband --mono Force decoding in mono --stereo Force decoding in stereo --rate n Force decoding at sampling rate n Hz --packet-loss n Simulate n % random packet loss -V Verbose mode (show bit-rate) -h, --help This help -v, --version Version information --pf Deprecated, use --enh instead --no-pf Deprecated, use --no-enh instead More information is available from the Speex site: http://www.speex.org Please report bugs to the mailing list `speex-dev@xiph.org'. COPYRIGHT
Copyright (C) 2002 Jean-Marc Valin speexdec version 1.1 September 2003 SPEEXDEC(1)
All times are GMT -4. The time now is 11:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy