![]() |
|
|
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 |
| Storing Multiple Values in a Variable | sandeep_1105 | UNIX for Dummies Questions & Answers | 1 | 03-03-2009 01:10 AM |
| Testing for multiple words in a Variable | eltinator | UNIX for Dummies Questions & Answers | 1 | 02-17-2009 05:17 AM |
| How do I write multiple variable syntax? | Captain | Shell Programming and Scripting | 1 | 11-11-2008 04:46 PM |
| usage of same variable in multiple scripts | risshanth | UNIX for Dummies Questions & Answers | 1 | 07-01-2008 01:03 PM |
| put the contents of this file into a variable with multiple lines | Nomaad | Shell Programming and Scripting | 3 | 04-23-2008 01:39 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Multiple variable in a variable in Perl
Hi All,
I am trying to convert the below Csh while loop into Perl while loop but the problem is that in this csh script, i have 2 variables inside a variable -> $count is a variable {SB$count} as a whole is another variable. Csh is able to assign values to such variable like the below but i do not know if this is possible in Perl. Can any expert give some advice? [code] while ( $count <= 5 ) then set SB$count = `cat $files_extracted.txt|grep -c "x= $count"` @ count = $count + 1 end [code] |
|
||||
|
Hi Pludi, Thks for the advice. But if my csh statement is the below. How can i convert the below to Perl ? Code:
set SB$count = `cat $tester_dir/files_extracted.txt|grep "HARD_BIN:"|awk '{print ($2)}'|grep -c $count`
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|