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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
samidare
SAMIDARE(1) User Commands SAMIDARE(1)NAME
samidare - web page update checker
SYNOPSIS
samidare [OPTION]... [URL]...
DESCRIPTION
Samidare checks web page updates. It takes a list of URLs in a configuration file, config.yml, and checks last update time of them. A
HTML file, latest.html, is generated to show the updates.
OPTIONS --help show help message.
-v, --verbose
specify verbose mode.
-n, --no-check
don't check web. output generation only.
-f, --force
force check (avoid timing control mechanism)
-o, --output=filename
specify output html filename.
--output-lirs=filename
specify output lirs filename.
-T, --template=filename
specify template filename.
-t, --timing
show check time of pages.
--dump-config
dump flatten configuration.
--dump-status
dump status. If URLs is specified, the status of specified pages are shown.
--dump-template-data
dump data for expand template. The "data" variable in template file refer this.
--dump-filenames
dumps locally stored filenames of pages specified by URLs.
--dump-filenames2
dumps locally stored recent two filenames of pages specified by URLs.
--remove-entry
remove entry of pages specified by URLs.
--diff-content
show difference of recent two files of specified URLs.
USAGE
samidare is configured by "config.yml" and "t.latest.html" by default.
samidare generates "latest.html" and "sites.lirs.gz"
samidare uses "status.rm" and "tmp" to record status of pages.
"config.yml" is a configuration file in YAML format. See EXAMPLES section for its content.
"t.latest.html" is a template file. In the file, "data" variable can be used. See the document of htree library for template directives.
So you can run samidare as follows.
% cd $HOME
% mkdir samidare
% cd samidare
% vi config.yml
% vi t.latest.html # optional
% samidare
% w3m latest.html # view the result
If you want to publish the result, use symbolic link to latest.html and sites.lirs.gz as follows.
% mkdir public_html
% mkdir public_html/samidare
% cd public_html/samidare
% ln -s ../../samidare/latest.html .
% ln -s ../../samidare/sites.lirs.gz .
EXAMPLES
The configuration file is described in YAML format.
The simplest configuration is list of URLs as follows.
- http://www.example.org/blog/
- http://www.example.net/
FILES
"config.yml" and "t.latest.html" is configuration file.
"latest.html" and "sites.lirs.gz" is output.
"status.rm" and "tmp" is used by samidare internally.
SECURITY
samidare stores pages in tmp directory. If it is published via your web server, XSS (cross site scripting) is possible. So the directory
should not be published.
AUTHOR
Tanaka Akira
SEE ALSO
htree
samidare 0.7 July 2008 SAMIDARE(1)