Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to move files older than certain time? Post 302985086 by RudiC on Friday 4th of November 2016 03:23:48 PM
Old 11-04-2016
Did you consider the find command? Applying the -mmin twice to enclose the desired period, or the -newer test accordingly.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Archiving and move files in the same time

Hi All, I have tried so many command but none work like i wanted. I would like archive which i assume it will move the files and archive it somewhere. for example: if i have a folder and files: /home/blah/test /home/blah/hello /home/blah/foo/bar i would like to archive folder... (6 Replies)
Discussion started by: c00kie88
6 Replies

2. Shell Programming and Scripting

Finding files older than the current date and time and renaming and moving

Hi, I have a very urgent requirement here. I have to find all files in the specified directory but not in the sub directories(The directory name is stored in a variable) which are older than the current date as well as current time and rename it as filename_yyyymmddhhmmss.ext and move it into a... (7 Replies)
Discussion started by: ragavhere
7 Replies

3. Shell Programming and Scripting

Shell script to move certain files on scheduled time

Hi Friends, I want a shell script which will move certain .jar files from a specified location (say /publish/content) to (/publish/archive) on every saturday morning 6 am. One more thing to add is that before moving files it must check free space at (/publish/archive), if it is more than 60 %... (7 Replies)
Discussion started by: abhishek27
7 Replies

4. Shell Programming and Scripting

files older than a certain time

I know how to find files, which are newer than a specific time. touch -t 201103300650 dummy find /path/to/files -type f -newer dummy -exec ls -l {} \; Is there a way to find files, which are older than a specific time? (2 Replies)
Discussion started by: BeefStu
2 Replies

5. UNIX for Dummies Questions & Answers

move files older than 2 days to another folder

Hi I am facing problem in using this command, mv `find /export/june/PURGEDATA*.txt -mtime +2 -exec ls {} \;` june/archive/ mv: Insufficient arguments (1) Usage: mv f1 f2 mv f1 ... fn d1 mv d1 d2 Thank you in advance (2 Replies)
Discussion started by: vishwakar
2 Replies

6. UNIX for Advanced & Expert Users

HPUX move files older than 30 days

Hello, I have a script which finds files in a directory that are older than 30 days and moves them to the specified directory. The problem is I don't know why it works the way it does? Code: find . -name '*.sql' ! -mtime -30 -exec mv '{}' /dataload/archivelogs \; I was under the... (4 Replies)
Discussion started by: pure_jax
4 Replies

7. Shell Programming and Scripting

Move log files with date and delete older than 3 weeks

I have written a script which generate one logfile on every sunday and thursday I want to move the older log files into /tmp directory befor generating new one so i used mv command like mv usr/sbin/appl/logfile.txt usr/sbin/appl/tmp 2) But when i move this file to /tmp it will... (1 Reply)
Discussion started by: Nakul_sh
1 Replies

8. Shell Programming and Scripting

How to move the files older than x days with similar directory structure?

Hello, I need to move all the files inside /XYZ (has multi-depth sub directories) that are older than 14 days to/ABC directory but with retaining the SAME directory structure. for example: /XYZ/1/2/3/A/b.txt should be moved as /ABC/1/2/3/A/b.txt I know about find /XYZ -type f -mtime +14... (3 Replies)
Discussion started by: prvnrk
3 Replies

9. Shell Programming and Scripting

Process 2 lists at the same time and move files.

I have this while loop, that works but is quite slow to process though. I'm hopping there might be a faster/better way to find what I'm looking for. I have 2 lists of numbers, and want to only find files where a file name has both values present. each list has about 100 values. while... (10 Replies)
Discussion started by: whegra
10 Replies

10. UNIX for Beginners Questions & Answers

Total size utilizes by the files older than a time span

Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
SPEAKER-TEST(1) 					      General Commands Manual						   SPEAKER-TEST(1)

NAME
speaker-test - command-line speaker test tone generator for ALSA SYNOPSIS
speaker-test [-options] DESCRIPTION
speaker-test generates a tone that can be used to test the speakers of a computer. OPTIONS
-c | --channels NUM NUM channels in stream -D | --device NAME PCM device name NAME -f | --frequency FREQ sine wave of FREQ Hz --help Print usage help -b | --buffer TIME Use buffer size of TIME microseconds. When 0 is given, use the maximal buffer size. The default value is 0. -p | --period TIME Use period size of TIME microseconds. When 0 is given, the periods given by -P option is used. The default value is 0. -P | --nperiods ERIODS Use number of periods. The default value is 4. -r | --rate RATE stream of RATE Hz -t | --test pink|sine|wav -t pink means use pink noise (default). Pink noise is perceptually uniform noise -- that is, it sounds like every frequency at once. If you can hear any tone it may indi- cate resonances in your speaker system or room. -t sine means to use sine wave. -t wav means to play WAV files, either pre-defined files or given via -w option. You can pass the number from 1 to 3 as a backward compatibility. -l | --nloops COUNT Specifies the number of loops. Zero means to run infinitely. When -s option below with a valid channel is given, speaker-test will perform always a single-shot without looping. -s | --speaker CHANNEL Do a single-shot speaker test for the given channel. The channel number starts from 1. The channel number corresponds to left, right, rear-left, rear-right, center, LFE, side-left, side-right, and so on. For example, when 1 is passed, it tests the left channel only once rather than both channels with looping. -w | --wavfile Use the given WAV file for the playback instead of pre-defined WAV files. -W | --wavdir Specify the directory containing WAV files for playback. The default path is /usr/share/sounds/alsa. USAGE EXAMPLES
Produce stereo sound from one stereo jack: speaker-test -Dplug:front -c2 Produce 4 speaker sound from two stereo jacks: speaker-test -Dplug:surround40 -c4 Produce 5.1 speaker sound from three stereo jacks: speaker-test -Dplug:surround51 -c6 To send a nice low 75Hz tone to the Woofer and then exit without touching any other speakers: speaker-test -Dplug:surround51 -c6 -s1 -f75 AUTHOR
The speaker-test program was written by James Courtier-Dutton. Pink noise support was added by Nathan Hurst. Further extensions by Takashi Iwai. speaker-test 20 September 2004 SPEAKER-TEST(1)
All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy