Hi,
I've to delete certain files older than X days from a Maintenance server.
I'm doing this using
find . -name lds\* -mtime $X \
-exec ls -l {} \;
find . -name lds\* -mtime $X \
-exec rm -fR {} \;
As well as I've to delete the files from another FTP server which are again older than X... (0 Replies)
Hi,
I have a directory which contains files.This Directory keeps getting in new files from time to time.I want to maintain only 15 files in that directory at any time and the old files should be deleted.
Eg:
Directory 'c' @'a/b/c contains:
1_a
2_a
3_a...
I want to delete all the old... (2 Replies)
Hi,
I have been working with files in emacs and a file showed up in my directories called #main.c# (the original file being main.c). However I cannot delete this #main.c# file. Any suggestions? (1 Reply)
hi everybody,
urgently need solutioin
aftet i execute the command df -k, i get to see al the memory status blah blah
if some file system has 95% full then what should i do and any help on how and what to do ?
help really appriciated.
cheers (4 Replies)
hellooo.....
script is: To remove a file from a directory if a starting letter and a file size is given by the user.
My code is:
echo "Enter a letter"
read l
echo "Enter Size"
read size
for i in `ls $l*`
do
s=`stat -c %s $i`
if
then
rm $i
... (1 Reply)
:confused:
hi all,
I need to delete all the files from a archieve directory whose filename
starts with 2008, 2009. The folder consists of 2008, 2009, 2010 and 2011.
the filename example is as below:
20081111_12_asc_ac_st.zip similarly there are files for 2009.
There are around... (2 Replies)
Hi Friends,
I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
Hi all, I have developed a shell script to copy the files from source to destination and simultaneously to delete the copied files in source. I can copy the files but the files cannot be deleted in source side. (3 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
LEARN ABOUT MOJAVE
mkepmlist
mkepmlist(1) Easy Software Products mkepmlist(1)NAME
mkepmlist - make an epm list file from a directory.
SYNOPSIS
mkepmlist [ -g group ] [ -u user ] [ --prefix directory ] directory [ ... directory ]
DESCRIPTION
mkepmlist recursively generates file list entries for files, links, and directories. The file list is send to the standard output.
The -g option overrides the group ownership of the files in the specified directories with the specified group name.
The -u option overrides the user ownership of the files in the specified directories with the specified user name.
The --prefix option adds the specified directory to the destination path. For example, if you installed files to "/opt/foo" and wanted to
build a distribution that installed the files in "/usr/local", the following command would generate a file list that is installed in
"/usr/local":
mkepmlist --prefix=/usr/local /opt/foo >foo.list
SEE ALSO epm(1) - create software packages
epminstall(1) - add a directory, file, or symlink to a list file
epm.list(5) - epm list file format
COPYRIGHT
Copyright 1999-2007 by Easy Software Products, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
3 April 2006 ESP Package Manager mkepmlist(1)