![]() |
|
|
|
|
|||||||
| 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 |
| Include PERL script with in the unix shell script | ganapati | UNIX for Dummies Questions & Answers | 1 | 04-29-2008 09:18 AM |
| Error executing shell command from a perl script | voorkey | Shell Programming and Scripting | 3 | 02-19-2008 03:37 PM |
| perl - why is the shell script executed before the print command? | mjays | Shell Programming and Scripting | 3 | 09-21-2007 02:49 AM |
| How to Run a shell script from Perl script in Parent shell? | hifake | Shell Programming and Scripting | 16 | 08-28-2007 05:42 PM |
| how to write perl substitute command in shell scripts | param_it | UNIX for Dummies Questions & Answers | 3 | 07-03-2007 01:09 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
perl command help in shell script
Hello friends ,
I need a help how to call the variable which has define in the shell script in the perl command line. example of the shell scrip : str="hell0" i want print the value of this variable in the perl command line. perl -e 'print $str' but this is not working . can anyone help me with this pls. Thanks, Venky |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
use double quotes
|
|
#3
|
|||
|
|||
|
Code:
[zec#/usr1/zec]: str="hello" [zec#/usr1/zec]: perl -e "print \"$str\n\"" hello [zec#/usr1/zec]: |
|||
| Google The UNIX and Linux Forums |