Sponsored Content
Full Discussion: Move to New Timestamp Folder
Top Forums UNIX for Dummies Questions & Answers Move to New Timestamp Folder Post 302948447 by MrDude on Monday 29th of June 2015 06:29:53 PM
Old 06-29-2015
will this work?

Hi Sea and Don,

I finally got around to working on the site. What you both said seems to make the most sense. Will this work?

first cron ran every 2 weeks:

Code:
mv /home/00/public_html/sec/fr/ /home/00/public_html/SG/albums/Fr/$(date +\%Y\%m\%d)  && mkdir /home/00/public_html/sec/fr/

then in another cron:

Code:
find /home/00/public_html/SG/albums/Fr/ -mtime +90 -exec rm {} \;

i haven't tried it. don't want to mess everything up with a novice mistake.

thanks.

Last edited by MrDude; 06-29-2015 at 07:43 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

move file change timestamp

Hello, Alright solution: I need to move files to a backup folder, changing the datestamp to the current day so that the file stays in the backup folder for the full 30 days before another script removes it. Obviously, any file I move in will preserve the timestamp which is what I *don't* want.... (2 Replies)
Discussion started by: tekster757
2 Replies

2. UNIX for Dummies Questions & Answers

timestamp in the end of a folder

hello everybody, im new here... can u tell me how can i add a timestamp in a bottom of a file which will say for example..it was written on that date and time. is tha possible?? thanxxxxxx (7 Replies)
Discussion started by: psychobeauty
7 Replies

3. Shell Programming and Scripting

Move the file from one folder to another folder

Hi, I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755 If the permission is otherthan 755 we need to come out of the loop I will appreciate your help Thanks Soll (1 Reply)
Discussion started by: sollins
1 Replies

4. Shell Programming and Scripting

File Management: How do I move all JPGS in a folder structure to a single folder?

This is the file structure: DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies

5. Shell Programming and Scripting

want to move set of file from one folder to another folder

Hi all, let me explain my requirments i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead each 5 folders contain 15 files i want to move 10 files to some other folder, remain 5 files should be there in the same folder. give me some suggestion on this. (6 Replies)
Discussion started by: natraj005
6 Replies

6. Shell Programming and Scripting

Finding the maximum timestamp in a folder

I've the files in a directory in the following format having date +%Y%m%d%H YR_MNTH_2013061205 YR_MNTH_2013060107 and i need the latest file i.e; YR_MNTH_2013061205 to be moved to another folder #!/bin/ksh # Ksh 88 Version for test_time in YR* do --- done How can i achieve that !... (2 Replies)
Discussion started by: smile689
2 Replies

7. Shell Programming and Scripting

Script to move one folder to multiple folder...

Hi All, I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip. This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
Discussion started by: peekuabc
9 Replies

8. Shell Programming and Scripting

Cd to Folder based on TimeStamp

Hi, ls -ltr -rw-rw---- 1 user1 admins 5000032 Jan 20 17:11 M1120252_P004640.csv Now i wish to cd to that folder amongst the below folders that would have log files for the date of the .csv file i.e. 20 Jan 17:11 ls -ltr total 53616 drwxrwx--- 2 user1 admins 20840448 Jan 19... (4 Replies)
Discussion started by: mohtashims
4 Replies

9. Shell Programming and Scripting

Move files from Space Folder to other folder

I want to move a folder with spaces from one folder to another. I have two folders like this, 1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/ I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies

10. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
CHALOW(1p)																CHALOW(1p)

NAME
chalow - weblog tool that converts ChangeLog to HTML SYNOPSIS
chalow [OPTION]... CHANGELOG... DESCRIPTION
chalow is a weblog tool written in Perl. It converts ChangeLog to HTML and RSS. The options are as follows: -n, --top-n=NUM write NUM days to index.html -o, --output-dir=DIR directory to output -c, --configure-file=FILE configure file -s, --stop-date=DATE date to stop processing -u, --update-by-size overwrite only if sizes are different -C, --css=FILE css file -q, --quiet quiet mode -8, --utf8 utf8 mode -d, --debug debug mode EXAMPLES
Generate index.html, cl.rdf, etc. from ChangeLog: chalow ChangeLog Generate index.html, cl.rdf, etc. from ChangeLog with cl.conf: chalow -c cl.conf ChangeLog Generate index.html, cl.rdf, etc. into the $HOME/public_html/diary directory from ChangeLog* (such as ChangeLog, ChangeLog.2, ChangeLog.old) with cl.conf in utf8 mode: chalow --utf8 -o $HOME/public_html/diary -c cl.conf ChangeLog* BUGS
chalow assumes that ChangeLog file is encoded with EUC-JP or US-ASCII by default. If you want to use UTF-8, use the utf8 mode option (`-8' or `--utf8'). Other encodings, such as ISO-8859-1, ISO-8859-15, EUC-KR, are not supported. This manual page is provided by Debian. It is not integrated in the upstream source. SEE ALSO
More information is available at `/usr/share/doc/chalow' on Debian systems. July 1, 2006 CHALOW(1p)
All times are GMT -4. The time now is 09:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy