![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get following output in perl | email-lalit | Shell Programming and Scripting | 1 | 08-08-2008 01:20 PM |
| Set a variable from awk output | Cranie | UNIX for Dummies Questions & Answers | 3 | 10-11-2007 09:39 AM |
| To store the output in a variable | Sudhakar333 | Shell Programming and Scripting | 2 | 07-10-2007 08:45 AM |
| how to output awk to a variable | bashirpopal | UNIX for Dummies Questions & Answers | 4 | 04-02-2003 11:02 AM |
| Saving Perl scrpits in a UNIX Shell | hagrid | UNIX for Dummies Questions & Answers | 3 | 06-21-2001 12:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Saving output from awk into a perl variable
How would I pass awk output to a perl variable?
For example, I want to save the value in the 4th column into the variable called test. My best guess is something as follow, but I am sure this isn't correct. Code:
$test = system("awk '/NUMBER/{print \$4}' $_");
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|