Sponsored Content
Top Forums Shell Programming and Scripting List files created before Noon 2 days prior Post 302159945 by prismtx on Saturday 19th of January 2008 11:06:03 AM
Old 01-19-2008
Found it!

sb008, thanks for your idea. The TZ didn't work on the SUSE Linux, but got me to explore in the right area and I found this solution which worked great for me.

touch -t $(date -d "-2 day" +%m%d)1200 $REF

Thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Deleting files created before two days ago

Dear All: I want to build a shell that delete files created two or more days ago ... I think it could be built using a special command with ls or grep, I'd apreciate any help from you guys I have a lot of log files from november, december, january and this tool will help me a lot The files... (3 Replies)
Discussion started by: josecollantes
3 Replies

2. Solaris

command to list files that are created before some date

Can you please let me know the command to list the files that are created before some date, this we want to use for the following Eg: Move all the files that got created before 2006 to new folder in Solaris (3 Replies)
Discussion started by: csreenivas
3 Replies

3. Shell Programming and Scripting

Remove files which created date before 10 days on HP-UX

Hi All, Could you please let me know if there is any one can help to create a shell script to remove some files which is the created date for them greate than 10 days (sysdate-10) Please try to email me on email removed Thanks in advance, Murad (1 Reply)
Discussion started by: murad_fayez
1 Replies

4. UNIX for Dummies Questions & Answers

How to list files Created in last 2 hrs

I wanted to know what command should I use to see the files created in last 2 hours in a given directory. I know to see the files changed in last one day I can use this: find /admin//dump -type f -ctime -1 -print | xargs ls -lt|pg However I am not getting what should I use if I wanted tol... (4 Replies)
Discussion started by: rsonakiya
4 Replies

5. UNIX for Advanced & Expert Users

File disk utilization for 10 days prior

Hi I have a requirement to list the files & the total disk utilization they have which are 10 prior to current date. I tried couple of options in combinations of find mtime, ctime with du -m, but no luck. Could you please help me in this ? (2 Replies)
Discussion started by: videsh77
2 Replies

6. UNIX for Dummies Questions & Answers

moving files prior to 2 days

Hi All, I have a question. i have a directory say /home/pavi/logs ls -ltr gives all the files in the /home/pavi/logs directory. i am trying to move only those files existing in this folder prior to 2 days. i.e files exiting say May 9th and May 8th remain in this directory but all the... (12 Replies)
Discussion started by: pavan_test
12 Replies

7. UNIX for Dummies Questions & Answers

How to find files created some days before?

HI, I have 2 questions. 1> Is there any code to see files that created some day or some time before in a directory??? 2> how or where i will find the last exit status of a process?? thanks (6 Replies)
Discussion started by: jyotidas
6 Replies

8. Shell Programming and Scripting

what is the find to command to find the files created last 30 days

what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies

9. Shell Programming and Scripting

Find the sum of files created 5 days before

Hi, I want to find the sum of all the files created 5 days ago and store it in a variable. (os is HP-UX) can this be extracted from ls -l Is there any other way of getting the sum of all the files created (4 Replies)
Discussion started by: bang_dba
4 Replies

10. Linux

List all files created today exclude last one

Hi, ALL thanks in advance, i listed all files using this command ls -ltr $(date +%Y%m%d)*.xmlbut i would like to exclude the last one created ; Best regard MEROUAN Use code tags, thanks. (4 Replies)
Discussion started by: merouan
4 Replies
L-DIALCODES(5)							File Formats Manual						    L-DIALCODES(5)

NAME
L-dialcodes - UUCP phone number index file DESCRIPTION
The L-dialcodes file defines the mapping of strings from the phone number field of L.sys(5) to actual phone numbers. Each line in L-dialcodes has the form: alpha_string phone_number The two items can be separated by any number of blanks or tabs. Lines beginning with a `#' character are comments. A phone number in L.sys can be preceded by an arbitrary alphabetic character string; the string is matched against the list of alpha_strings in L-dialcodes. If a match is found, phone_number is substituted for it. If no match is found, the string is discarded. L-dialcodes is commonly used either of two ways: (1) The alphabetic strings are used as prefixes to denote area codes, zones, and other commonly used sequences. For example, if L-dialcodes included the following lines: chi 1312 mv 1415 In L.sys you could enter: chivax Any ACU 1200 chi5551234 ogin:--ogin: nuucp mvpyr Any ACU 1200 mv5556001 ogin:--ogin: Uuucp instead of chivax Any ACU 1200 13125551234 ogin:--ogin: nuucp mvpyr Any ACU 1200 14155556001 ogin:--ogin: Uuucp (2) All phone numbers are placed in L-dialcodes, one for each remote site. L.sys then refers to these by name. For example, if L-dialcodes contains the following lines: chivax 13125551234 mvpyr 14155556601 then L.sys could have: chivax Any ACU 1200 chivax ogin:--ogin: nuucp mvpyr Any ACU 1200 mvpyr ogin:--ogin: Uuucp This scheme allows a site administrator to give users read access to the table of phone numbers, while still protecting the login/password sequences in L.sys. FILES
/etc/uucp/L-dialcodes /etc/uucp/UUAIDS/L-dialcodes L-dialcodes example SEE ALSO
uucp(1), uux(1), L.sys(5), uucico(8). 4.3 Berkeley Distribution October 22, 1996 L-DIALCODES(5)
All times are GMT -4. The time now is 07:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy