pickup until last friday files from directory


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting pickup until last friday files from directory
# 1  
Old 12-14-2007
pickup until last friday files from directory

Freinds,

I need help:

I need to process number of flat files on weekly basis. My source dir will receive flat files regulary at mid night
between 1:00am and 6:00am. When I run my weekly file process it should get only the files which are until last friday
(including friday)and move them in to staging folder.

How can I get all the files only until Friday?

Thanks,
mag
# 2  
Old 12-14-2007
man find

find is quite good at selecting files based on timestamps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Directory containing files,Print names of the files in the directory that are exactly same content.

Given a directory containing say a few thousand files, please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents. func(a_directory_name) output -> {“matches”: , ... ]} e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies

2. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

3. AIX

How to set owner and permission for files/directory in directory in this case?

Hi. My example: I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that chown -R log_adm /log/* chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies

4. Shell Programming and Scripting

Need help for automated pickup of file based on a priority

Hi experts, I am facing a problem right now.I have to automate the pickup of files based on a priority.The scenario is as below: 1) There will be files from Mon-Fri with Mon file being named as abc_def_01_YYYYMMDD and Tue file being abc_def_02_YYYYMMDD and so forth till Friday's file which... (1 Reply)
Discussion started by: vikramgk9
1 Replies

5. Shell Programming and Scripting

Need an automated pre-defined file pickup method

Hi Gurus, I need to develop a script which picks the files in a pre-defined order. The files from monday-friday will be named as abc_01_20130923 as monday's file and abc_02_20130924 as tuesday's..so..so forth till friday's which will be named as abc_05_20130927.It repeats over for the... (3 Replies)
Discussion started by: vikramgk9
3 Replies

6. Shell Programming and Scripting

Grepping file names, comparing them to a directory of files, and moving them into a new directory

got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies

7. Shell Programming and Scripting

NOT able to pickup files

Hi, I have two files to pick and excute these ones. File1:DOLFIN.PRL_100.OIB.TLU.001.D20110510.T144948 File2:DOLFIN.PRM_100.OTU.001.D20100726.T050026 date '+%H:%M:%S' SCRIPTS_PATH=/u/dolfin/bin . ${SCRIPTS_PATH}/set_dolfin_env.sh DATA_FILE_NAME=DATA_FILE DATE_FORMAT=`date... (2 Replies)
Discussion started by: shyamu544
2 Replies

8. UNIX for Advanced & Expert Users

How to rsync or tar directory trees, with hidden directory, but without files?

I want to backup all the directory tress, including hidden directories, without copying any files. find . -type d gives the perfect list. When I tried tar, it won't work for me because it tars all the files. find . -type d | xargs tar -cvf a.tar So i tried rsync. On my own test box, the... (4 Replies)
Discussion started by: fld2007
4 Replies

9. UNIX for Dummies Questions & Answers

pickup files.

How can I pickup files with a specific date by "ls" command without options? (1 Reply)
Discussion started by: gd2003
1 Replies

10. Shell Programming and Scripting

pickup file from folder

Hi, Can any body help me,How to pickup file from folder using shellscript. FolderName:/test FileinFolder: test.txt MY req is:Shellscript pickup file from folder and pass file as parameter to java program..? Thanks, Rams (0 Replies)
Discussion started by: ram2s2001
0 Replies
Login or Register to Ask a Question