The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell programming nivas Shell Programming and Scripting 8 02-11-2008 09:06 AM
searchin optimized arunsubbhian UNIX for Dummies Questions & Answers 1 09-07-2007 01:31 AM
Optimized Method matrixmadhan UNIX for Dummies Questions & Answers 2 12-14-2006 07:26 AM
Server Optimized Linux computek Linux 3 09-18-2004 12:22 PM
Shell Programming JWK1 UNIX for Dummies Questions & Answers 2 06-01-2001 10:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 06-11-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Based on a quick reading of the manual page, I don't think you are using it correctly. You are pushing but never pulling. The push method does not expect or support the passing of an argument. I also don't see how this is supposed to bring you closer to a solution.

In the meantime, the script I posted above does seem to produce the expected output for the sample input you supplied. And no, the delete command only deletes the specified element from the hash, not the whole hash (that would be undef -- see the delete documentation for more).
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0