Sponsored Content
Full Discussion: Daily File Checks
Top Forums UNIX for Dummies Questions & Answers Daily File Checks Post 302528740 by Aussiemick on Tuesday 7th of June 2011 11:38:11 PM
Old 06-08-2011
Quote:
Originally Posted by yazu
For you idea - it's better to use find:
To find all files modified between 24 and 48 hours ago in DIRECTORY and its suddirectories:
Code:
find DIRECTORY -ctime 1 -type f

I don't appear to get an output when I run this?

Quote:
Originally Posted by yazu
To find all the files that were modified yesterday from the current working directory and all of its subdirectories:
Code:
find . -daystart -ctime 0 -type f

Just wondering if I'm able to get a datestamp and filesize in the output?
Either way this is very useful, adding > filename to the end allowed me to save it in a file.

Thanks very much : )


P.S. i tried adding -al and -l on the end of find . -daystart -ctime 0 -type f but got an error saying "invalid predicate"
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

monitor daily file uploads

hey all, i am a shell scripting n00b so bear with me. i got a server that every night uploads one file to a remote server. the file is prodserver_date_time. i would like to make a script, run by root on a daily cron job. i want it to determine if the file was received or not. no md5... (2 Replies)
Discussion started by: jweinraub
2 Replies

2. Shell Programming and Scripting

perform some checks on file using perl

hi i want check for PVCS header in file if its present then check if its in proper format or not i want to do this is in perl on windows. this is what i am doing : 1 . open file 2 . check for "PVCS information" if found then store the line no to $line var. 3 . check for "sccs" header ... (0 Replies)
Discussion started by: zedex
0 Replies

3. UNIX for Advanced & Expert Users

Doing Checks on a file

I have a process that I am trying to provide a solution for and have hit a brick wall and would like some pointers in the right direction. Basically on a daily basis a report is automatically generated in a CSV format (FIRST.CSV) which includes codes and amounts in the following format: ... (6 Replies)
Discussion started by: SAMZ
6 Replies

4. UNIX for Advanced & Expert Users

speed test +20,000 file existance checks too slow

Need to make a very fast file existence checker. Passing in 20-50K num of files In the code below ${file} is a file with a listing of +20,000 files. test_speed is the script. I am commenting out the results of <time test_speed try>. The normal "test -f" is much much too slow when a system... (2 Replies)
Discussion started by: nullwhat
2 Replies

5. AIX

Daily checks for AIX business critical boxes.

Hi all, I will like to know what are all sanitary checks which should be done on daily basis on all business critical AIX boxes without fail. (7 Replies)
Discussion started by: deepm
7 Replies

6. Shell Programming and Scripting

Daily grep on a log file

Hi, I would like to execute a daily grep like: grep 2010-09-06 statistics.log|grep API > /var/tmp/stat20100906_sp.txt On date e.g. 2010-09-07 run a grep on yesterday's date, from the result grep the word "API" put all in /var/tmp Would like to have a script configured in the crontab, running... (4 Replies)
Discussion started by: pointer
4 Replies

7. Shell Programming and Scripting

Daily Checks

Hey Guys, I'm seeking some assistance in getting this script to run as a cron job for the user oracle.. the script is basically to perform 2 ADRCI checks... see the script below... i'm getting the following error: /export/home/oracle/Daily_Checks/ADRCI_Daily_Checks.sh: syntax error at line 16:... (7 Replies)
Discussion started by: Racegod
7 Replies

8. Red Hat

UNIX script for daily file transfer ???

I need to create a script which needs to transfer the "<filename>+yyyymmdd".dat file from a unix machine to a linux machine.. daily. we can use an active batch to schedule the script. however, the script needs to detect if the new file is present, if present, then transfer. any help ?? (1 Reply)
Discussion started by: ravikodi
1 Replies

9. Shell Programming and Scripting

How to send file from windows to UNIX daily?

Hi All! I am trying to write a little script that should go to a windows server get one file and put on a unix server, but I am not sure if it is the right way please help: #! /usr/bin/sh HOST=10.100.48.41 USER=ftp_hm PASSWD=P@$$w0rd ftp -n $HOST quote user $USER quote pass $PASSWD... (7 Replies)
Discussion started by: fretagi
7 Replies

10. Shell Programming and Scripting

Script to move file on a daily basis

Hi! Please I need help on the a script that would pick one file in a directory, change its name, them change its permissions, them move to a different directory, but has to be done on a daily basis, and the file that is being moved to its final destination has to have the following format:... (7 Replies)
Discussion started by: fretagi
7 Replies
PianoBooster(6) 														   PianoBooster(6)

NAME
pianobooster - learn the piano just by playing a game DESCRIPTION
Piano Booster is piano teaching software that can provide piano lessons for beginners as well as for advanced players. It can be used for teaching music theory and is useful for piano practice and learning piano technique. SYNOPSIS
pianobooster [flags] [midifile] OPTIONS
-d Increase the debug level -q Quick start -h, --help Display a help message -v Display the version number and exit USAGE
Piano Booster is a fun way of playing along with a musical accompaniment and at the same time learning the basics of reading musical nota- tion. The difference between playing along to a CD or a standard midi file is that Piano Booster listens and follows what you are playing on a midi piano keyboard. The program has been designed to allow you to play along on a midi piano keyboard with the scrolling notes shown on the screen. The notes you press on the keyboard appear as coloured lines on the musical stave, the colour of which depends whether you have pressed the right or wrong note. A different musical instrument sound is used for your playing depending whether you are playing the right or wrong notes. This feature also allows Piano Booster to be used with printed sheet music so you can hear if you are playing the right notes while at the same time keeping your eyes on the printed score. The music accompaniment will automatically wait for you to find and play the correct notes in the piece. Timing markers show whether you are playing ahead or behind of the beat. They appear as white crosses that are drawn over the note. FEATURES
- Piano Booster follows you when playing along to a musical accompaniment. If you stop, then so does the music. - Play a single hand and Piano Booster will play the other hand, as well as the rest of instruments, in time with you. - Change the speed of playback to match your playing ability. - Transpose +/- 12 semitones without stopping the play back. - Change the Key Signature of the piece. - Plays any standard midi or kar file. - Play along to any instrument in the midi file. - Adjust the volume of the current part or the volume your piano part. - See how accurate you're playing. - Change the start bar to start playing from any bar in the music. The repeat bars allows you to practice just a few difficult bars contin- uously. - Timing markers are white crosses that are drawn over each note and show if you are playing ahead or behind the beat. - A different instrument sound is used for the right and wrong notes that you play. SEE ALSO
You can find more about the game on its homepage: http://pianobooster.sourceforge.net/ AUTHOR
The game has been written by Louis J. Barman <louisjb@users.sourceforge.net>. This manual page was written by Miriam Ruiz <lit- tle_miry@yahoo.es> for the Debian project. PianoBooster(6)
All times are GMT -4. The time now is 09:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy