On 11/12/13 21:45, Sharon Kimble wrote: > I have this line in a bash script that is not doing what its supposed > to - > 'find /home/boudiccas/.fluxbox -type f -mtime +"$num" -name 'menu-*' > -delete' > where "$num" = 7 and 'menu-*'=menu-20131209-11:05 . Obviously the date > and time can be different in each case, so how do I get it so that it > deletes the menus if their number is greater than 7 please?
That's the tricky part. As it stands the "menu" is just a string *not* a value. Either convert it into a value or use another method to determine which menu to delete (hint: creation date). > All the > rest of the script works as expected, except for this one line! > > Does this make sense? > Sharon. > Kind regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52a8454b.9090...@gmail.com