05-09-2006
This works for moving the files more than 2 days old (2 * 24 hours Change the number accordingly after mtime parameter)
mv `find /home/pavi/logs/*.* -mtime +2 -exec ls {} \;` /home/pavi
Gopinath
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies
2. Shell Programming and Scripting
Our nightly updates run in the evening and finish around 8am. My boss wants the current log files kept on the server for 2 days, but wants anything created before noon, 2 days prior archived. I was thinking of using touch to set a temporary file with a date of today-2 and a time of noon, then... (3 Replies)
Discussion started by: prismtx
3 Replies
3. UNIX for Advanced & Expert Users
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
4. Shell Programming and Scripting
Hi Experts,
I have a "Source" folder which may contain some files. I need a shell script which should move all files which are older than 3 days to "Archive" folder.
Thanks in Advance... (4 Replies)
Discussion started by: phani333
4 Replies
5. UNIX for Dummies Questions & Answers
I am running a code like this
foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
mv *_${list}.doc ${chart}_${list}.doc #mv: when moving multiple files, last argument must be a... (3 Replies)
Discussion started by: animesharma
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
Discussion started by: dsfreddie
1 Replies
7. Shell Programming and Scripting
Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Discussion started by: Dj Moi
5 Replies
8. AIX
I have a bunch of hidden files in a directory in AIX. I would like to move these hidden files as regular files to another directory.
Say i have the following files in directory /x
.test~1234~567
.report~5678~123
.find~9876~576
i would like to move them to directory /y as
test~1234~567... (10 Replies)
Discussion started by: umesh.narain
10 Replies
9. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
LEARN ABOUT DEBIAN
mucous
MUCOUS(1) Museek Daemon Plus MUCOUS(1)
NAME
Mucous - Python / Curses client for museek
SYNOPSIS
mucous [-c <filename>] [--config <filename>] [-l <directory>] [--log <directory>] [-v] [--version] [-h] [--help]
DESCRIPTION
Mucous provides a interface for the Museek Daemon for chatting, transferring files, managing users and browsing shares on the Soulseek P2P
network and Soulfind Servers.
You will need a configured museekd(1).
OPTIONS
Mucous accepts the following options:
-c <filename>, --config <filename>
Use a different config file.
-l <directory>, --log <directory>
Use a different chat log directory.
-v, --version
Display Version and exit.
-h, --help
Display Help and exit.
EXAMPLE
To run this program the standard way type:
mucous
Alternativly you use a different config file with:
mucous --config config
Or a different chat logging directory with:
mucous --log logdir
ENVIRONMENTAL VARIABLES
TERM Specifies the type of Terminal; changes the way mucous displays color.
For XTerm: xterm-color
For aterm or rxvt: rxvt
For urxvt: rxvt-unicode
FILES
~/.mucous/config
The default location for the mucous config file.
~/.mucous/logs/
The default directory for chat logs.
~/.mucous/logs/room/
The directory where chat room logs are stored.
~/.mucous/logs/private/
The directory where private chat logs are stored.
~/.mucous/$USER.image
The file where a user's userinfo image is saved.
AUTHORS
daelstorm <daelstorm@gmail.com>
SEE ALSO
mulog(1) murmur(1) muscan(1) muscand(1) museekcontrol(1) museekd(1) museeq(1) musetup(1) musetup-gtk(1)
daelstorm Release 0.8.0 MUCOUS(1)