update July 17, 2018
NAME
bl_deletefiles.sh - Delete files
from current working directory.
SYNOPSIS
bl_deletefiles.sh
filelist
DESCRIPTION
filelist
- This is a list of filenames, one name per line.
Before deleting files, a popup box promots the user with the names
of the selected files, asking to verify that the files should be
deleted. If the user clicks on Yes, each file named in filelist is
deleted from the current working directory.
Exceptions:
1. For use with BioLegato it is important to know that the
BioLegato Table canvas selects all files if none are selected,
meaning that ALL files in the current directory will be written to
filelist. This is a feature. We can circumvent that by checking
for a pseudo-comment beginning '#' on the first line. If
found, a popup box informs the user that no files were selected,
and the deletion is cancelled.
2. We want to avoid deleting NFS file handles. Any file whose name
begins with .nfs will be skipped, and a message is printed to the
standard output.
AUTHOR
Dr. Brian Fristensky
Department of Plant Science
University of Manitoba
Winnipeg, MB Canada R3T 2N2
frist@cc.umanitoba.ca
http://home.cc.umanitoba.ca/~frist