Difference between revisions of "Hdel"
From Scriptwiki
Line 13: | Line 13: | ||
[[Category:Hash Table]] | [[Category:Hash Table]] | ||
+ | [[Category:Commands]] |
Latest revision as of 20:25, 24 November 2005
Deletes an item from a hash table.
/hdel -sw <name> <item>
The -w switch indicates that item is a wildcard, all matching items are freed.
Using the -s switch makes the command disply the result (e.g. * Deleted item 'Dana' from hash table 'users')
Example
hdel users Dana
This example would delete the item called "Dana" from hash table users.
hdel -w users *
This example would delete all items from the hashtable users.