07-05-2006
You can remove file in a similar way mcnamara suggested.
find /path/to/directory -mtime +180 -exec rm {} \;
remember here it is necessary to give semicolon and has to be preceded by \ to take away its special meaning.here {} indicate that searched files would become arguments for rm.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
please give me adivse .how to find the folder size with created created date .
eg:
i have directore and in that sub directoties and so on..
/home/mud/abc/dcb/
for this i want output like this
path size date
-------------------------------------------... (3 Replies)
Discussion started by: muddasani
3 Replies
2. UNIX for Dummies Questions & Answers
how do i find the date a file was created? (3 Replies)
Discussion started by: trob
3 Replies
3. Shell Programming and Scripting
I am trying to rename files based on the created/born date of the file. I Have a total of 4000 files that i am trying to do this with and would like it to be log_yyyymmddhh.gz right now the files are maillog.???.gz.
Can anyone point me in the right direction of how to get this done via scipt?
... (4 Replies)
Discussion started by: Paulb
4 Replies
4. Shell Programming and Scripting
i want to find unix file created how many days ago? (4 Replies)
Discussion started by: utoptas
4 Replies
5. Shell Programming and Scripting
Hi All,
We are copying all the files into ARCHIVE directory after we process them. We are doing this process from last 2 years, now we have a lot of files in ARCHIVE directory.
Now I need to find when the first file is copied into this directory?
If I Issue,
ls -l /ARCHIVE/*.* | tail -1... (3 Replies)
Discussion started by: Raamc
3 Replies
6. AIX
how to find the date on which a particular directory is created?
Thanks. (4 Replies)
Discussion started by: samsungsamsung
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am creating a file in unix today.
Is it possible to make the file created as 2 days older (or some past date)?
P.S:
i dont want to change the system date to older one and try.:rolleyes:
Thanks,
Pandeeswaran (6 Replies)
Discussion started by: pandeesh
6 Replies
8. HP-UX
Hi All
Any one please suggest me...
I have one directory every monday one file will be created in that directory. so if the file is created on monday or not i need check first.
How can write a script??? if the file is not created i want to quit from script.
Thanks
K.Srinivas (5 Replies)
Discussion started by: k_s_rao7
5 Replies
9. Shell Programming and Scripting
Hi All,
I'm trying to find a file which is created on current day.... I searched in unix.com and i found, below command.
find /land/ -mtime -1 -type f -print | grep "FF_Member_STG.dat"
The command checks if the file with name "FF_Member_STG.dat" is created today then exit else proceed.
... (3 Replies)
Discussion started by: ace_friends22
3 Replies
10. UNIX for Dummies Questions & Answers
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
Input:
atr files:
... (1 Reply)
Discussion started by: yuvaa27
1 Replies
LEARN ABOUT DEBIAN
set_allegro_resource_path
set_allegro_resource_path(3alleg4) Allegro manual set_allegro_resource_path(3alleg4)
NAME
set_allegro_resource_path - Sets a specific resource search path. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int set_allegro_resource_path(int priority, const char *path);
DESCRIPTION
Sometimes Allegro doesn't look in enough places to find a resource. For those special cases, you can call this function before loading your
resource with additional paths to search for. You set up the priorities, higher numbers are searched for first. To modify an already setup
path, call this function with the same priority and the new path. To remove an already setup path, call this function with the priority of
the path and NULL as the path parameter. Example:
set_allegro_resource_path(10, "my_game/configs");
set_allegro_resource_path(0, "users/configs/");
set_allegro_resource_path(-45, "temp");
These custom paths will be valid until you call allegro_exit(). You can call this function before install_allegro(), but after set_ufor-
mat() if you want to use a text encoding format other than the default.
RETURN VALUE
Returns non-zero on success, zero if the path could not be added or you wanted to remove a path and the priority used didn't have any asso-
ciated path. Modification of existing paths always succeeds.
SEE ALSO
find_allegro_resource(3alleg4)
Allegro version 4.4.2 set_allegro_resource_path(3alleg4)