Em 12-05-2010 01:48, [email protected] escreveu:
> 12.05.2010 00:33, Rui Miguel Silva Seabra пишет:
>> If you want to delete all:
>>
>> opimd-cli m query | awk '/EntryId/ { print $2 }' | tac | while read ID ;
>> do opimd-cli m delete $ID ; done
> 
> There is no tac installed in my shr-t so I used this one:
> 
> opimd-cli m query | grep EntryId |awk '{ print "opimd-cli m delete "$2}' >
> /tmp/mess-fix.sh

Agh! Useless use of grep! In such a slow system I strongly recommend:

opimd-cli m query | awk '/EntryId/ { print "opimd-cli m delete "$2}' >
/tmp/mess-fix.sh

:)

Rui
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to