Solved

I need a password seed script

Posted on 2011-02-10
2
465 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
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…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

773 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