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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command display output on console and simultaneously save the command and its output satimis UNIX for Dummies Questions & Answers 7 01-25-2009 08:27 PM
get characters from output of a command in a variable muaz Shell Programming and Scripting 3 06-02-2008 10:13 AM
ls command output to variable in script dsrookie UNIX for Dummies Questions & Answers 1 03-10-2008 04:14 PM
Assigning output of command to a variable oma04 Shell Programming and Scripting 5 06-27-2006 01:11 PM
Command output to a variable. videsh77 Shell Programming and Scripting 8 12-16-2004 06:06 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-12-2009
saapa saapa is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 7
to save output of a command in hash variable

Hi all,

is it possible to save the output of a unix command executed in perl to be saved in hash variable..

like i have the command

`find $mypath ! -user mainuser -printf \"\%u \%h\\n\"`;

this will print all the users other than mainuser with their paths.
so is possible to capture directly result into a hash(hash of arrays) which stores the key as username and all the paths of a particular user as values.

thanks for ur help and suggestions in advance
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0