On 23-10-2014 15:01, James Lynes wrote:
This approach is probably safer than just the warning note that I put
in, but the list of files to be deleted is 21 printed pages, so it may
not be practical to have that scroll across the screen. You couldn't
really review it.
Could you not just sho
Steve:
This approach is probably safer than just the warning note that I put in,
but the list of files to be deleted is 21 printed pages, so it may not be
practical to have that scroll across the screen. You couldn't really review
it.
Maybe a pre-clean-out script to run the find command and outpu
Hi James,
Actually, I've changed my mind, what about something recursive
like this (I called it test.sh and it calls itself with a file redirect
in it. We just type sh test.sh):
#!/bin/bash
#
if [ -z "$1" ]
then
echo "These directories will be deleted:\n";
#