![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ls command output to variable in script | dsrookie | UNIX for Dummies Questions & Answers | 1 | 03-10-2008 12:14 PM |
| can I pass awk variable to system command? | zhynxn | Shell Programming and Scripting | 2 | 07-05-2006 08:11 AM |
| Assigning output of command to a variable | oma04 | Shell Programming and Scripting | 5 | 06-27-2006 09:11 AM |
| redirect command output to variable | hugow | UNIX for Dummies Questions & Answers | 1 | 06-22-2005 03:43 AM |
| Command output to a variable. | videsh77 | Shell Programming and Scripting | 8 | 12-16-2004 02:06 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi there!
I'm trying to write a script that will capture output from a command and assign it to a variable. Let's say, for example, I'd like to catch from inside the script whatever the following command outputs: Code:
ls *.aaa What I tried was: Code:
set listoffiles = 'ls *.aaa' echo $listoffiles Code:
$ ls file1.aaa file2.aaa file3.aaa Code:
$ file1.aaa file2.aaa file3.aaa |
| Forum Sponsor | ||
|
|