Re: script line not working as its supposed to, but why?
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
Reply to: