Solved

I need a password seed script

Posted on 2011-02-10
2
466 Views
Last Modified: 2012-05-11
first string
"face"
second string
"1234"

I need a perl scipt to return
f1a2c3e4

one letter of each followed by sedond letter of each followed by third letter of each followed by 4th letter of each.

0
Comment
Question by:TIMFOX123
2 Comments
 
LVL 5

Accepted Solution

by:
torvir earned 500 total points
ID: 34865151
#!perl

print "First string: ";
chomp(my $s1=<STDIN>);
print "Second string: ";
chomp(my $s2=<STDIN>);
for (my $n=0; ($n<length $s1) || ($n<length $s2); $n++ ) {
      print substr($s1, $n, 1).substr($s2, $n, 1);
}
print "\n";
0
 

Author Closing Comment

by:TIMFOX123
ID: 34865213
this does it !!!  

thx
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question