10-11-2016
Actually, I need to check for files older than 30 days and not 3 weeks. I did not get what do you mean by tests and actions could be grouped
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to figure out a way to delete empty files in a directory. I have a cron that runs and creates a flat file every 15 mins. However, most times at night the flat file will be empty.
I'd like to run a script to delete empty files that end with *.dat
Any suggestions?
Rich (1 Reply)
Discussion started by: rpnuge
1 Replies
2. Shell Programming and Scripting
Hi,
I have the following task to perform using shell script.
The user will provide a directory name along with a date. The script will delete all the files in the specified directory that was created earlier to that date. Also it should display the number of files that has been deleted.
... (7 Replies)
Discussion started by: theguy16
7 Replies
3. Shell Programming and Scripting
Hi all, new to the threads as well as Unix/Linux. I need to create a script that will delete any temporary files as well as check the files on the system for errors or corruption. This is what I have so far and I'm sure that I'm missing things or have the wrong commands. I'm not sure where to go... (3 Replies)
Discussion started by: Bwood1377
3 Replies
4. Shell Programming and Scripting
i want to delete all the files in my directory except the latest one. i need to do this from shell script.
say i have
a.txt - latest file
b.txt,
c.txt..
it should delete all the files except a.txt? (4 Replies)
Discussion started by: krishnarao
4 Replies
5. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
6. Shell Programming and Scripting
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Discussion started by: joseph.dmello
0 Replies
7. Shell Programming and Scripting
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies
8. Shell Programming and Scripting
Hi All,
Thanks in Advance
I wrote the following code
if
then
echo "version is 1.1"
for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account"
do
FILE="SDP_DUMP_$i.csv"
echo "$FILE"
... (5 Replies)
Discussion started by: aealexanderraj
5 Replies
9. Shell Programming and Scripting
Hello,
we have more than 100000 files in a directory which are write-protected regular file, these files are quite old and would like to delete them completely, Kindly let me know the command or peice of code to automate the process.
The filenames are like below
MPNT_... (6 Replies)
Discussion started by: Hadoop_Master
6 Replies
10. Shell Programming and Scripting
Hello,
I am new to shell scripting, need help,
my requirement is to delete the ip address from serveral files,
please suggest (2 Replies)
Discussion started by: manoj.solaris
2 Replies
LEARN ABOUT DEBIAN
bootcdflopcp
BOOTCD(1) bootcd utils BOOTCD(1)
NAME
bootcdflopcp - copy changes made after booting from bootcd to floppy
SYNOPSIS
bootcdflopcp [-v] [-d <device>]
DESCRIPTION
bootcdflopcp will copy changes made in ram to the floppy disk. bootcdflopcp will be available as soon as your system is running from cd.
The floppy has to have a filesystem already. (See mke2fs or mformat). If you have to boot from floppy, because your cd-drive or bios does
not support to boot from cd a msdos filesystem is used to run syslinux. When bootcdflopcp is called it searches for differences between
RAM and CD. For each different file, it checks if it is listed in the files ignore, remove or change on floppy. If it is listed in change
it will be saved to change.tgz on floppy. If it is listed in remove the file will be removed from ram next boot time. If it is listed in
ignore it will be ignored. If it is not listed at all you will be interactively asked what to do.
OPTIONS
-v The option "-v" (verbose) adds messages on running.
-d <device>
Use another device instead of "/dev/fd0" to save changes.
FILES
FLOPPY:/remove
If a file is listed here the file will be deleted from ram next boot time.
FLOPPY:/change
If a file is listed here bootcdflopcp will save it in change.tgz.
FLOPPY:/ignore
If a file is listed here bootcdflopcp will ignore changes to this file.
FLOPPY:/change.tgz
Here all changed files are stored in gzipped tar format.
SEE ALSO
bootcd(1), bootcd2disk(1), bootcdwrite(1)
AUTHOR
This manual page was written by Bernd Schumacher <bernd.schumacher@hp.com>, for the Debian GNU/Linux system (but may be used by others).
Wed Feb 23 00:00:00 EET 2000 BOOTCD(1)