This is the full file name I get when I do ls -lt
from my current directory.
EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz
File names also consist of date as well. In the above file date is 20120811
.
So I am trying to delete all the files which starts with EXPORT_v1x0
and whose date is less than 20120825
.
I am using the below script from the command line to delete the files
find . -name "EXPORT_v1x0*" | awk -F'_' '$3<20120825' | xargs rm
But whenever I use the above command to delete the files, I always get this below exception.
rm: ./EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz not removed: Disc quota exceeded
Can anyone tell me what does this exception means? And how to overcome this problem?
I am running SunOS
.
bash-3.00$ uname -a
SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc
echo -n > EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz
. – Anton Kovalenko Feb 3 '13 at 21:28quota -v
? – Keith Thompson Feb 3 '13 at 21:375.10
If I interpret correctly the version name. And I triedquota -v
but it saysquota: command not found
. Why? – TechGeeky Feb 3 '13 at 21:41echo -n > EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz
. Again I got sameDisc Quota Exception as well
– TechGeeky Feb 3 '13 at 21:49